Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. there is design patteren
  2. favour object composition over inheritance
  3. class abc extends def
  4. class abc
  5. {
  6. private def obj;
  7. }
  8.  
  9. but what are meaning of 2 lines
  10. inheritance change behavior at compile time
  11. composition change behavior at run time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement