Open edytawrobel opened 7 years ago
Arrange the code you have, so it is easy to change
Gang of Four (GoF)
simple and elegant solutions to specific problems in object-oriented software design. By using it, you make your own design more FLEXIBLE, MODULAR, REUSABLE, UNDERSTANDABLE"
OOP applications are made up of objects and the messages that pass between them OO Languages, class based, combine data and behaviours into a single thing, object Objects have behaviour and may contain data to which they alone control access Objects invoke one another's behaviour by sending each other messages Every object decides for itself how much of its data to expose
Class-based OO languages allow to define a class that provides a blueprint for the construction of similar objects. A class defines methods (definitions of behaviour) and attributes (definitions of variables). Methods get invoked in response to messages.