Computer Science, asked by chethanrgowda38, 1 year ago

is possible to access data outside the class

Answers

Answered by mansukh
1
yes
hope it will help you

chethanrgowda38: Tqs for answering
mansukh: welcome
Aryamohanan23: Yes, you can access data members and functions outside of the class by the help of public and protected access specifiers.

If you make data members public then you can access data members from anywhere of your program and if you make protected data members then you can use those data members only in the inherited class.
chethanrgowda38: Tqs
Answered by kavyarock
4
yes it is possible to access data outside the class......
.
.
.
kavya.....
Similar questions