C++ Language INTERVIEW QUESTION & ANSWERS
11. |
What are tokens? |
|
The smallest individual units in a program are called tokens. |
12. |
What are the types of tokens? |
|
C++ has the following tokens are :- Keywords
- Identifiers
- Constants (literals)
- Punctuators (Separators)
- Operators
|
13. |
What is an object? |
|
An object is an instance of a class. It can be uniquely identified by its name and it defines a state, which is represented by the values of its attributes at a particular point in time. |
14. |
What is class? |
|
A class is a collection of objects. A class may be defined as a group of objects with same operations and attributes. The class is a key word in C++ programming. The user deals with classes instead of dealing with various individual objects. |
15. |
What is the difference between private and public class? |
|
The Private access means that only associated functions can only access the data. The Public access means that data can be accessed by other objects of the program.
|