Subscribe to Java/SCJP        RSS Feed
-----

When not to use inheritance

Icon Leave Comment
If the behaviour of a class changes with time, then that behaviour should not be implemented as inheritance because inheritance imposes static behaviour. Delegation/Composition should be used in such a case.

0 Comments On This Entry

 

January 2022

S M T W T F S
      1
2345678
9101112131415
161718192021 22
23242526272829
3031     

Recent Entries

Recent Comments

Search My Blog

10 user(s) viewing

10 Guests
0 member(s)
0 anonymous member(s)