Understanding the Object-Oriented Programming

A programming paradigm in which emphasis is given on data rather than process

Photo by Arian Darvishi on Unsplash
Organization of data and functions in OOP

The terminology used in OOP:


Object CarData                              Function
plateNumber = 120 accelerate()
speed = 100
color = black


Class Student                     Class Vehicle
Id Name
Name Maker
getName() Engine
printGrade() getDetails()

Data Abstraction & Encapsulation



fig. single Inheritance
fig. multiple inheritance
fig. hierarchical Inheritance
fig. multilevel Inheritance


Example of Polymorphism


Tech Enthusiast | Student

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store