OOP CONCEPTS IN SIMPLE TERMS

OOP CONCEPTS IN SIMPLE TERMS


👉Class⠀
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

Popular posts from this blog

My LHD share experience

FRONT END DEVELOPER SKILLS YOU NEED TO KNOW⠀

USEFUL CHROME EXTENSIONS FOR DEVELOPERS