C++ Interview Questions
Q1. What is the full form of OOPS? OOPS stands for Object Oriented Programming System. Q2. What is a class? A class is a data structure where entities, attributes and actions are clubbed under one name. Class is also considered as a carbon copy which reflects the entities, attributes and actions. In general, a class defines user defined data types. For example, when we say student class, it will have student name, class, age etc. as well as the methods needed for accessing or manipulating with its members. #include class Student { public : char Name [ 20 ]; char Class [ 15 ]; int Age ; void displayStdName (); int getAge ( char stdName ); } Q3. What is an object? An instance of a class is called as object. A class defines the skeleton of the data that we need to represent. Object represents the class with its own values to class members. For example, Student is a class and it will be represented as above. We can create various instance of class, whic