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

Write is a binary search tree? Write an algo and tell complexity?

0 Answers   Axtria,


Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300”,”BullCart : 10”) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side

0 Answers   Telecom,


what is data abstraction in C++?

0 Answers  


Explain one-definition rule (odr).

0 Answers  


How a pointer differs from a reference?

0 Answers  






Explain about vectors in c ++?

0 Answers  


List out some of the OODBMS available?

1 Answers  


What is flag in computer?

0 Answers  


Consider a c++ template funtion template<class T> T& Add(T a, T b){return a+b ;} if this function is called as T c = Add("SAM", "SUNG"); what will happen? What is the problem in the template declaration/ How to solve the problem.

7 Answers   LG, Samsung,


What is operator overloading in c++ example?

0 Answers  


Should I learn c or c++ first?

0 Answers  


What is decltype c++?

0 Answers  


Categories