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

Git AND GitHub FUNDAMENTALS

My LHD share experience

LIBRARY vs. FRAMEWORK⠀