OOPs Interview Question and Answers
11. |
What is called statement terminator? |
|
A punctuator that separates statements in a program is known as statement terminator.
|
|
|
12. |
What is called token? |
|
- The smallest, non reducible, textual elements in a program are referred to as tokens.
The C# language has five such tokens.- Keywords,
- Identifiers,
- Literals,
- Operators,
- punctuators
|
|
|
13. |
What is called method invocation? |
|
- The process of activating a method is known as Calling the Method or Method invocation.
- It is done using the dot operator.
|
|
|
14. |
What is meant by Operator Overloading? |
|
Operator overloading makes a program clearer than accomplishing the same operations with explicit method calls. Some benefits are
- A class that represents an amount of memory.
- A word processing or text analysis program that uses classes representing sentences, clauses and so on.
- Graphics program that use mathematical or co-ordinate related objects when calculating positions on screen.
|
|
|
15. |
Define enumeration? |
|
- An enumeration is a user defined integer type which provides a way for attaching names to numbers.
- The following code shows the example for enum.
|
|
|
123456789101112
Page 3 of 12