-
What is the diffrence between static_cast and dynamic_cast in RTTI
dynamic_cast checks for datatype at runtime but static_cast checks at compilation. Is this the only diffrence b/w them or is there anything else? at the time of programming which shud we prefer to call.
-
What do you mean by pure virtual functions?
A pure virtual member function is a member function that the base class forces derived classes to provide. Normally these member functions have no implementation. Pure virtual functions are equated to zero. class Shape { public: virtual void draw() = 0; };