Computer Science, asked by kaushikkumar06, 7 months ago

difference between private and public in c++​

Answers

Answered by Gungun7865
0

Answer:

Public- members are accessible from outside the class.

Private- members cannot be accessed (or viewed) from outside the class.

Answered by mikidevimikidevi9762
0

Answer:

public - members are accessible from outside the class. private - members cannot be accessed (or viewed) from outside the class. protected - members cannot be accessed from outside the class, however, they can be accessed in inherited classes.

Similar questions