OOP CONCEPTS IN SIMPLE TERMS
OOP CONCEPTS IN SIMPLE TERMS
Class is a blueprint for creating a particular data structure, providing initial values for sate, and implementations of behavior.⠀
👉Object⠀
Object is an instance of a class that has the structure of its blueprint but also owns its unique state and behavior.⠀
👉Encapsulation⠀
Encapsulation is achieved when each object keeps its state private, inside a class. Other objects don’t have direct access to this state.⠀
👉Abstraction⠀
Abstraction means that each object should only expose a high-level mechanism for using it. This mechanism should hide internal implementation details⠀
👉Inheritance⠀
Objects are often similar. They share common logic. With inheritance, the child class reuses all fields and methods of the parent class and can implement its own.⠀
⠀
👉Polymorphism⠀
Polymorphism means “many shapes”. It gives a way to use a class exactly like its parent, but each child class keeps its own methods as they are.⠀
📕Object-Oriented Programming with C++
by E Balagurusamy (Author)
⠀
What OOP languages do you use?
_______________________________________
Comments
Post a Comment