Differences between private, protected and public and give examples.


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

Post New Answer

More C++ General Interview Questions

What does it mean to declare a member variable as static?

0 Answers  


What is c++ runtime?

0 Answers  


How to defines the function in c++?

0 Answers  


Write a program and call it sortcheck.cpp which receives 10 numbers from input and checks whether these numbers are in ascending order or not. You are not allowed to use arrays. You should not define more than three variables

2 Answers   BirlaSoft, Crayonz,


Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast

2 Answers   Quark,


Explain stack & heap objects?

0 Answers  


Can create new c++ operators?

0 Answers  


What is the use of ::(scope resolution operator)?

0 Answers  


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

0 Answers  


When does a name clash occur?

1 Answers  


Can a constructor return a value?

1 Answers  


What is static class data?

0 Answers  


Categories