Please enable JavaScript.
Coggle requires JavaScript to display documents.
Programming Style - Coggle Diagram
Programming Style
-
Object Oriented Design
-
Principles
4. POLYMORPHISM
- ability of an object to take different forms.
- eg. chess has many pieces like bishop, queen. And everyone respond differently for the object "move"
3. INHERITANCE
- mechanism of creating new classes from existing ones.
2. ENCAPSULATION
- binding the data together and hiding it from the outside world.
- can be accessed only from from private functions or few public function.
1. ABSTRACTION
- natural extension of encapsulation
- used in large code base, where only relevant logic is shown of the object which can be useful for other object, rest is hidden.
-