C++ Programmer Question:
Download Job Interview Questions and Answers PDF
Explain me what is an Object/Instance?
Answer:
Object is the instance of a class, which is concrete. From the above example, we can create instance of class Vehicle as given below
Vehicle vehicleObject;
We can have different objects of the class Vehicle, for example we can have Vehicle objects with 2 tyres, 4tyres etc. Similarly different engine capacities as well.
Vehicle vehicleObject;
We can have different objects of the class Vehicle, for example we can have Vehicle objects with 2 tyres, 4tyres etc. Similarly different engine capacities as well.
Download C++ Programmer Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain void free (void* ptr)? | Tell us what do you mean by internal linking and external linking in c++? |