May 2012
Intermediate to advanced
679 pages
16h 56m
English
Q. What is an object?
A. In simple words, an object is an instantiation of a class.
Q. What is a class?
A. Prima-facie Class is a user-defined type like structure. In addition to data members, it also contains declaration of all the functions that operate on this type.
Q. What are the components of a class?
A. A class consists of two components, data members and methods.
Q. What are data members?
A. Data members are variables of any type (inbuilt or user defined.)
Q. What are methods?
A. Methods are functions associated with the class. They are able to access even private data members.
Q. How to create a class definition?
A. We study the real life object and its attributes are made as the data members of ...
Read now
Unlock full access