Explain the differences between private, public and protected and give examples.


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

Post New Answer

More C++ General Interview Questions

How can I learn c++ easily?

0 Answers  


program to print this triangle * * * * * *

12 Answers   Infosys,


Why namespace is used in c++?

0 Answers  


What are the various oops concepts in c++?

0 Answers  


How would you use the functions sin(), pow(), sqrt()?

0 Answers  


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == 4 ) y-= 7; else y = 8; Enter a segment of code (without any IF statements) that does exectly the same thing using the switch structure.

1 Answers  


whats the size of class EXP on 32 bit processor? class EXP { char c1; char c2; int i1; int i2; char *ptr; static int mem; };

5 Answers   Huawei,


What is general format for a prototype?

0 Answers  


What are pointers used for c++?

0 Answers  


What is pointer -to-members in C++? Give their syntax?

0 Answers   Honeywell, Zomato,


Explain linear search.

0 Answers  


write a program to add two numbers without using an arithmetic operator.

1 Answers   NIIT,


Categories