Skip to content

Commit b70614e

Browse files
committed
Creating object with reference to Interface
In Dao pattern DaoImpl object is created with reference to dao interface.
1 parent bd82387 commit b70614e

File tree

1 file changed

+1
-1
lines changed
  • dao/src/main/java/com/iluwatar/dao

1 file changed

+1
-1
lines changed

dao/src/main/java/com/iluwatar/dao/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class App {
2929
* @param args command line args.
3030
*/
3131
public static void main(final String[] args) {
32-
final CustomerDaoImpl customerDao = new CustomerDaoImpl(generateSampleCustomers());
32+
final CustomerDao customerDao = new CustomerDaoImpl(generateSampleCustomers());
3333
log.info("customerDao.getAllCustomers(): " + customerDao.getAllCustomers());
3434
log.info("customerDao.getCusterById(2): " + customerDao.getCustomerById(2));
3535
final Customer customer = new Customer(4, "Dan", "Danson");

0 commit comments

Comments
 (0)