https://github.com/code4mk/oop-object-oriented-oop-journey
Object Oriented Programming Journey
https://github.com/code4mk/oop-object-oriented-oop-journey
learn-oop object-oriented-programming oop oop-journey oop-php oop-principles oop-tips
Last synced: 4 months ago
JSON representation
Object Oriented Programming Journey
- Host: GitHub
- URL: https://github.com/code4mk/oop-object-oriented-oop-journey
- Owner: code4mk
- License: mit
- Created: 2021-03-02T11:32:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-13T20:58:44.000Z (over 2 years ago)
- Last Synced: 2025-02-19T12:55:25.772Z (4 months ago)
- Topics: learn-oop, object-oriented-programming, oop, oop-journey, oop-php, oop-principles, oop-tips
- Homepage:
- Size: 12.7 KB
- Stars: 13
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OOP journey
OOP stands for object-oriented programming. OOP is a programming paradigm related to objects.OOP's main concepts are object and class. Each object communicates with the others.
## Class
Class is a template(blueprint) for creating a object. It contains attributes/properties/datas/state and behavior/methods/actions.
example: `home blueprint/sketch`
## Object
Object is instance of class. Object has attributes , methods and identify.
`object is a real entity`, example: `real home`
# Advantages
* Clear structure.
* Reusable.
* DRY code (don't repeat yourself).
* Maintainable/Bug fixing/dedug easy.
* Adoptable.
* Secure,protect infromation through encapsulation.
* Faster development sprint.# Main pillar of OOP
1. [Inheritance](https://github.com/code4mk/oop-object-oriented-oop-journey/tree/main/Inheritance) (extends parent class with child class)
2. [Encapsulation](https://github.com/code4mk/oop-object-oriented-oop-journey/tree/main/encapsulation) (binding properties/method one unit)
3. [Abstraction](https://github.com/code4mk/oop-object-oriented-oop-journey/tree/main/abstraction) (Hiding implementation)
4. [Polymorphism](https://github.com/code4mk/oop-object-oriented-oop-journey/tree/main/polymorphism) (Many form)# Resources
* [Resources](https://github.com/code4mk/oop-object-oriented-oop-journey/blob/main/resource.md)