differentiate between private, public and protected data members of the class using example.



differentiate between private, public and protected data members of the class using example...

Answer / bhagyalakshmi

public is accessed through out the program
private is accessed with in the class only
protected is accessed like public only

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More STL Interview Questions

What is Template Specialization?

1 Answers   Lucent,


How do I convert a stl file?

0 Answers  


how to get the sum of two integers?

2 Answers  


c# support late binding or early binding.

6 Answers  


write a program to search and display the position of an element in a single-dimentional array using function.

1 Answers  


i want a road rash 3d game code if some one know please help me

1 Answers  


what is template and type convertion

0 Answers   TATA,


Difference between Structure and Class in C++?

5 Answers   Caritor,


why we are using the fork command?.. how it works?

1 Answers  


How do you convert stl to steps?

0 Answers  


I am doing my BS.c MATHS CAN I ABLE TO JOIN IN NIIT?

2 Answers  


if x<>=z then statement end what is the cyclomatic complexity

5 Answers  


Categories