Define private, protected and public access control.
No Answer is Posted For this Question
Be the First to Post Answer
What is the role of static keyword for a class member variable?
Difference between Top down and bottom up approaches for a given project ?
14 Answers BSNL, CSC, HCL, HP, IIT, Infosys, Siemens,
What is the use of volatile keyword in c++? Give an example.
How delete [] is different from delete?
What is an adaptor class or Wrapper class?
How would you obtain segment and offset addresses from a far address of a memory location?
What is the use of cmath in c++?
How to declare a function pointer?
Define private, protected and public access control.
template<class T, class X> class Obj { T my_t; X my_x; public: Obj(T t, X x) : my_t(t), my_x(x) { } }; Referring to the sample code above, which one of the following is a valid conversion operator for the type T? a) T operator T () { return my_t; } b) T operator(T) const { return my_t; } c) operator(T) { return my_t; } d) T operator T (const Obj &obj) { return obj.my_t; } e) operator T () const { return my_t; }
what is c++
What do the header files usually contains?