Notifications
Clear all

Programming

1 Posts
2 Users
1 Likes
346 Views
0
Topic starter

What is object oriented programming?

1 Answer
1

Object oriented programming is a programming paradigm in which we have class to represent the the structure of real world entities and object to represent entities themselves. In this we think of real world we have class that behave like the things in real world, e.g. a Car class might have data to represent its price, color, weight and functions that are the functions of a car, such as blow_horn(), drive() etc. All these things make the class ‘Car’ represent the real world car which is the whole point of object oriented programming. OOP also a things such as inheritance, which is relation of being a member of a family. e.g. class ‘Sudan’ is member of ‘Car’ family so ‘Sudan’ derives from ‘Car’ etc.

Share: