What is OOP? In which part I can learn it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is OOP? In which part I can learn it?

Expecting replies.

6th Nov 2017, 5:50 AM
Akhilesh Ronghe
Akhilesh Ronghe - avatar
2 Answers
6th Nov 2017, 5:58 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
Object Oriented Programming – As the name suggests uses objects in programming. Languages like C++ and Java uses classes and objects in their programs and are that why they are called Object Oriented Programming Languages. The main aim of OOPS is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function. Features of OOPS are: 1. Objects: Objects are basic run-time entities in an object-oriented system, objects are instances of a class these are defined user-defined data types. 2. Class: Class is a blueprint of data and functions or methods. Class does not take any space. 3. Encapsulation and Data abstraction: Wrapping up(combing) of data and functions into a single unit is known as encapsulation. The data is not accessible to the outside world and only those functions which are wrapping in the class can access it. Data abstraction refers to, providing only needed information to the outside world and hiding implementation details. 4. Inheritance: Inheritance is the process by which objects of one class acquire the properties of objects of another class. It supports the concept of hierarchical classification. Inheritance provides reusability. This means that we can add additional features to an existing class without modifying it. 5. Polymorphism: Polymorphism means the ability to take more than one form.
6th Nov 2017, 7:13 AM
Nikhil Sharma
Nikhil Sharma - avatar