what is data in object oriented programming?
Answers
Answered by
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
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