How can we access protected and private members of a class?
No Answer is Posted For this Question
Be the First to Post Answer
Does defining a function inline mean that it wont push and pop things on/off the stack ...like parameters and the return the address??
Write a String class which has: 1) default constructor 2) copy constructor 3) destructor 4) equality operator similar to strcmp 5) constructor which takes a character array parameter 6) stream << operator
2 Answers HCL, Lehman Brothers, Zoomerang,
What is a loop? What are different types of loops in c++?
Explain class invariant.
What is encapsulation in c++?
A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a C++ program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.
Explain deep copy?
What is the use of string in c++?
What is iostream in c++ used for?
How much do coding jobs pay?
What are friend functions in C++?
What is the outcome of cout< a) 16 b) 17 c) 16.5