Starting with Important topic of C ++ Language :- Operator Overloading Virtual function Inheritance STL: Standard Template Library C language questions campus/interview preparation Objective type questions or multiple choice questions (MCQ) are often asked in various exams, including job recruitment tests. It also helps in understanding language constructs, syntax and fundamental rules. click the link given in above list to go to that topic. Virtual Function 1. A virtual function that has no definition within the base class is called____________. (a) Pure virtual function (b) Pure static function (c) Pure Const function (d) Friend function Answer (a) If there is a condition that derived class must override the particular function or complete definition of a function is not defined in the base class then we will declare function as a virtual function in the base class. 2. If a class contai...
Comments
Post a Comment