Describe private, protected and public – the differences 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 is the disadvantage of using a macro?

0 Answers  


What are the implicit member functions of class?

0 Answers  


How should a contructor handle a failure?

0 Answers  


What are the two types of polymorphism?

0 Answers  


What are proxy objects?

2 Answers  






Write about an iterator class?

0 Answers  


What's the order in which the local objects are destructed?

0 Answers  


Difference between delete and delete[]?

5 Answers   Infosys, TCS, Virtusa,


How does work in c++?

0 Answers  


Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?

0 Answers   Maxobiz,


What is the role of copy constructor in copying of thrown objects?

0 Answers  


write a porgram in c++ that reads an integer and print the biggest digit in the number

0 Answers  


Categories