Explain public, protected, private in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Why do we need runtime polymorphism in c++?

0 Answers  


What are the basics of classifying different storage types, why?

2 Answers   Astergate, Symphony,


What is c++ and its features?

0 Answers  


When the design recommends static functions?

2 Answers   Symphony,


Describe private, protected and public – the differences and give examples.

0 Answers  


What is unary operator? List out the different operators involved in the unary operator.

0 Answers  


What is the purpose of ios::basefield in the following statement?

0 Answers  


can output 5 students using one dimensional array

1 Answers   Intel,


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

0 Answers  


Explain the difference between 'operator new' and the 'new' operator?

1 Answers   Lucent, TCS,


What size is allocated to the union variable?

0 Answers  


What is c++ w3school?

0 Answers  


Categories