------------------------------------------------------------------------------------<BR>Velmurugan Periasamy<BR>Sun Certified Java Programmer for Java 2 Platform<BR>Sun Certified Web Component Developer for J2EE platform<BR>Sybase Certified EAServer Developer (similar to jCert level 3)<BR>------------------------------------------------------------------------------------<BR>Study notes for Sun Java Certification<BR><A HREF="http://www.geocities.com/velmurugan_p/" TARGET=_blank rel="nofollow">http://www.geocities.com/velmurugan_p/</A><BR>------------------------------------------------------------------------------------
Originally posted by shailesh sonavadekar:
With inheritance , you inherit layout , behaviour & interface. If I have to inherit interfaces , then what I should do ?
I want only layout & behaviour , what is to be done ? if I want all three , what I should do ?
The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
Originally posted by shailesh sonavadekar:
With inheritance , you inherit layout , behaviour & interface. If I have to inherit interfaces , then what I should do ?
I want only layout & behaviour , what is to be done ? if I want all three , what I should do ?
Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Originally posted by shailesh sonavadekar:
With inheritance , you inherit layout , behaviour & interface. If I have to inherit interfaces , then what I should do ?
...
I want only layout & behaviour , what is to be done ? if I want all three , what I should do ?
Originally posted by Michael Ernest:
Composition and encapsulation can approximate the appearance of multiple inheritance, but that's about it.
Originally posted by Pete Casseta:
Just make an outer class which has a series of inner classes that extend each of the base classes you want the behavior/attributes of.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |