What is runtime polymorphism in c++?


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

Post New Answer

More C++ General Interview Questions

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

3 Answers   Quark,


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; }

1 Answers   Quark,


What are the 4 types of library?

0 Answers  


What is ostream in c++?

0 Answers  


What are static variables?

0 Answers  






Explain function overloading

0 Answers  


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

0 Answers   Yahoo,


What are the types of array in c++?

0 Answers  


Is java the same as c++?

0 Answers  


Explain the advantages of using friend classes.

0 Answers  


When should you use global variables?

0 Answers  


What is the difference between the compiler and the preprocessor?

0 Answers  


Categories