How are data and functions organized in an object-oriented program?
Answers
Answered by
10
OOP programs are organized around objects, which contain data and functions that operate on that data. ... The object is an instance of a class. The major features of OOP are data abstraction, data encapsulation, inheritance and polymorphism.
Answered by
1
In an object-oriented program the data and functions are organized into classes.
Classes:
It describes the category in which the data and functions of a particular data which works as a unit.
Object-oriented program:
- It is a method of programming in which classes and objects are used as the basic concept. It has the capacity to modify a software program to organised simple parts of blueprint pieces (classes).
- The object-oriented program has several methods such as abstraction, encapsulation, inheritance and polymorphism. It can be reused multiple times using the categorized classes.
- In the process of abstraction only the essential data is retrieved, hence data safety is maintained. The function in an object-oriented programe does not depend on the classes and it funtions independently.
Similar questions