Object Oriented Programming
Object Oriented Programming
1) Encapsulation
Hiding the Details Of The Internal Implementation. Hide the details about how our objects work from other object user. Stat data ( instance variables ) should be declared private. Totally Private! Keep Out! You Have A Bank Account but u cant go into the vault. Use properties to protect class state data. Also Access data via public methods
2) Inheritance
Code Reuse and Building Block Strategies.
3) Polymorphism
Similar Objects ( Many Forms )
Objects
Object are software constructs that encapsulate data and allow the ability to use modify and share this data with other objects.