EASY
Earn 100

 In which access should a constructor be defined, so that object of the class can be created in any function?
 

50% studentsanswered this correctly

Important Questions on C Language and OOP

MEDIUM
If a class have two data members and two functions then to add those two numbers and to subtract them, which among the following is most efficient if the programmer wants to implement multiplication too?
 
EASY
In multilevel inheritance, which is the most significant feature of OOP used?
MEDIUM

Which of the following is not correct (in C++) ?

i) Class templates and function templates are instantiated in the same way

ii) Class templates differ from function templates in the way they are initiated

iii) Class template is initiated by defining an object using the template argument

iv) Class templates are generally used for storage classes.

MEDIUM

Which feature of OOP is indicated by the following code?

class student{  int marks;  };
class topper:public student{  int age;  topper(int age){   this.age=age;  }   };