About Programation: Difference between revisions
From My Limbic Wiki
Line 17: | Line 17: | ||
* One method with multiple implementation | * One method with multiple implementation | ||
* This can be implemented by designing a generic interface, which provides generic methods for a certain class of action and there can be multiple classes, which provides the implementation of these generic methods. | * This can be implemented by designing a generic interface, which provides generic methods for a certain class of action and there can be multiple classes, which provides the implementation of these generic methods. | ||
* | * Ways to do it: | ||
** '''Override''': method of an extended class | |||
** '''Compile Time''': Multiple methods declaration with multiple parameters | |||
=Heritage= | =Heritage= |
Revision as of 02:16, 10 May 2019
Central Principles in POO
Abstraction
- Abstraction is a process of hiding the implementation details from the user. Оnly the functionality will be provided to the user.
- Related to both encapsulation and data hiding
- My words:
- One abstract method = class abstract.
- This class can be extends by other classes
- The child classes will contain the extended methods of the abstract class, they can use them and the declaration of the abstract one
- The abstract method will be over-writed to have the possibility to write a different code for each child
Inheritance
- Extends: Multiple inheritance
Encapsulation
polymorphism
- Process objects differently based on their data type.
- One method with multiple implementation
- This can be implemented by designing a generic interface, which provides generic methods for a certain class of action and there can be multiple classes, which provides the implementation of these generic methods.
- Ways to do it:
- Override: method of an extended class
- Compile Time: Multiple methods declaration with multiple parameters
Heritage
Interface
Architectures
Design Patterns
- MVC
- MVP
- MVVM
Paradigm
- REST
- Object
- Procedural