Computer Science, asked by Anonymous, 1 year ago

what is data in object oriented programming?

Answers

Answered by vaibhavsijaria
1

Data means the current state of that object i.e. the value of variables.

Data can only accessed and modified by the instance methods.

Example there is a object T.V.

current channel and variable are its data.

Answered by SohamKundu012
0

An object oriented programming refers to the type of programming where data and object are given equal importance and data is secured by hiding it .

Features are

1. Inheritance .

2. Data abstraction .

3. Encapsulation .

4. Modularity .

5. Polymorphism .

Data contain attributes .

Similar questions