what are the basics of oop ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

what are the basics of oop ?

21st Sep 2017, 4:18 AM
Rimsha Haider
Rimsha Haider - avatar
2 Answers
+ 4
OOP is a design philosophy. It stands for Object Oriented Programming. Object-Oriented Programming (OOP) uses a different set of programming languages than old procedural programming languages (C, Pascal, etc.). Everything in OOP is grouped as self sustainable "objects". Hence, you gain reusability by means of four main object-oriented programming concepts. In order to clearly understand the object orientation model, let’s take your “hand” as an example. The “hand” is a class. Your body has two objects of the type "hand", named "left hand" and "right hand". Their main functions are controlled or managed by a set of electrical signals sent through your shoulders (through an interface). So the shoulder is an interface that your body uses to interact with your hands. The hand is a well-architected class. The hand is being reused to create the left hand and the right hand by slightly changing the properties of it.
21st Sep 2017, 4:34 AM
Yasir Mahmood
Yasir Mahmood - avatar
+ 2
nice
21st Sep 2017, 9:40 AM
D_Stark
D_Stark - avatar