C++ Public access specifier instead of Private – What is bad ?


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

Post New Answer

More C++ Interview Questions

Write a C++ Program to find Square Root of a number using sqrt() function.

1 Answers  


What is the difference between virtual functions and pure virtual functions?

1 Answers  


What does it mean to declare a member function as virtual in C++?

0 Answers   Amazon,


What is the meaning of the following declaration: int *const *const *i?

0 Answers   Adobe,


What is the purpose of a constructor? Destructor?

0 Answers   Amazon,






How to stop class inheritance in C++ with condition that object creation should be allowed

0 Answers  


What is the difference between an ARRAY and a LIST in C++?

0 Answers   IBS, TCS,


How to delete array of objects in C++? Proof by C++ code for proper deletion

0 Answers  


What is RTTI and why do you need it?

0 Answers   Amazon,


Write a program to read the values a, b and c and display x, where x=a/b–c. Test the program for the following values: (a) a = 250, b = 85, c = 25 (b) a = 300, b = 70, c = 70

1 Answers  


What's the value of the expression 5["abxdef"]?

0 Answers  


What is Advantage and Use of THIS pointer in C++ – Scenarios?

0 Answers  


Categories