|
Related Questions |
View Answer |
|
What do you mean by inheritance?
|
View Answer
|
|
What is an object?
|
View Answer
|
|
Explain term POLIMORPHISM and give an example using eg. SHAPE object: If I have a base class SHAPE, how would I define DRAW methods for two objects CIRCLE and SQUARE
|
View Answer
|
|
What is encapsulation?
|
View Answer
|
|
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function? virtual
|
View Answer
|
|
What is a COPY CONSTRUCTOR and when is it called?
|
View Answer
|
|
Describe PRIVATE, PROTECTED and PUBLIC – the differences and give examples.
|
View Answer
|
|
What is polymorphism? Explain with an example?
|
View Answer
|
|
What do you mean by pure virtual functions?
|
View Answer
|
|
What is the difference between an external iterator and an internal iterator? Describe an
|
View Answer
|
|
What are virtual functions?
|
View Answer
|
|
What is abstraction?
|
View Answer
|
|
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
|
View Answer
|
|
What is friend function?
|
View Answer
|
|
What is the difference between an object and a class?
|
View Answer
|
|
How do you decide which integer type to use?
|
View Answer
|
|
Explain which of the following declarations will compile and what will be constant - a pointer or the value pointed at: * const char * * char const * * char * const
|
View Answer
|
|
Why are arrays usually processed with for loop?
|
View Answer
|
|
What’s the output of the following program? Why? #include <stdio.h> main() { typedef union { int a; char b[10]; float c; } Union;
Union x,y = {100}; x.a = 50; strcpy(x.b,"hello"); x.c = 21.50;
printf("Union x : %d %s %f
",x.a,x.b,x.c ); printf("Union y :%d %s%f
",y.a,y.b,y.c); }
Given inputs X, Y, Z and operations | and & (meaning bitwise OR and AND, respectively) What is output equal to in
|
View Answer
|
|
What does extern mean in a function declaration?
|
View Answer
|