What is runtime polymorphism in c++?
No Answer is Posted For this Question
Be the First to Post Answer
class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; What is the access level for the member function "setx" in the class "derived" above? a) private b) local c) global d) public e) protected
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 are the 4 types of library?
What is ostream in c++?
What are static variables?
Explain function overloading
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
What are the types of array in c++?
Is java the same as c++?
Explain the advantages of using friend classes.
When should you use global variables?
What is the difference between the compiler and the preprocessor?