| Author |
Interface/Implemented class reference
|
UdayK Kumar
Greenhorn
Joined: Aug 05, 2009
Posts: 26
|
|
Hi,
Could you please elaborate in depth for the below code with suitable example?
#1)
List l = new ArrayList(); // Why GOOD.
#2)
ArrayList l = new ArrayList(); // Why BAD.
I saw many of explanation for the above code, but i didn't find any example for supporting #1) code.
Please explain me in depth...
|
 |
Muhammad Khojaye
Ranch Hand
Joined: Apr 12, 2009
Posts: 341
|
|
|
Search for 'programming to an interface'.
|
http://muhammadkhojaye.blogspot.com/
|
 |
 |
|
|
subject: Interface/Implemented class reference
|
|
|