Campus/Interview preparation with C ++ Language
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. Inheritance 1. Can struct be used as Base class for inheritance? (a) Yes (b) No Answer (a) yes because struct has by default public specifier which can act as base class for our program 2. The derivation of Child class from Base class is indicated by ____ symbol. (a) :: (b) : (c) ; (d) | (b) class baseClass { // Implementaion here }; class deriveClass: public baseClass { // Implementaion here }; 3. Reusability of the code can ...

Comments
Post a Comment