How are data and function organised in an object oriented programming?
Answers
Answered by
11
OOP programs are organized aroundobjects, which contain data and functions that operate on that data. ... The object is an instance of a class. The major features of OOP are dataabstraction, data encapsulation, inheritance and polymorphism.
Answered by
4
Answer:
Data and function are organized in classes in object-oriented programming.
Explanation:
Object-Oriented Programming works on the concept of objects and classes.
Classes combine both the data and the function together in an encapsulated manner.
This feature introduces encapsulation and abstraction from the external world.
- Encapsulation: Encapsulation is a process by which data and the functions that operate on the data are collectively combined in a form of a capsule. This facilitates the come security of the data from accidental changes.
- Abstraction: Abstraction means hiding the background details in order to provide a user-friendly model to the user. With the help of abstraction, we provide only that information to the user hat is essential for him to operate the application.
Objects are the instance of the class and a class can have as many objects as the programmer wants.
#SPJ3
Similar questions