Find code that you wrote and apply 2 of the 3 design principles
Encapsulate what varies
Program to interface, not an implementation
Favor composition over
Inheritance
Include the following with your awnser:
(1) provide UML representation before and after
(2) provide code before and after
(3) write your conclusion!

Find code that you wrote and apply 2 of the 3 design princip.pdf

  • 1.
    Find code thatyou wrote and apply 2 of the 3 design principles Encapsulate what varies Program to interface, not an implementation Favor composition over Inheritance Include the following with your awnser: (1) provide UML representation before and after (2) provide code before and after (3) write your conclusion!