Object-oriented programming in Java.
Composition might be considered as subclassing’s alternative. Composition : is simply implemented by all call forwarding to object field.consists of zero dependence upon the object field’s implementation details.is considerably much more flexible, as it is dynamically defined at the runtime instead of compile time Subclassing issues are : Encapsulation is violated since the implementation of subclass & superclass gets tightly ...
thanks...
sorry for all the questions
thanks...
06-14-2013, 02:22 PM in gbonecapone