| Other OOPS Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is virtual function? | Infosys | 11 |
| What is the output of the following code:
int v()
{
int m=0;
return m++;
}
int main()
{
cout<<v();
}
1) 1
2) 0
3) Code cannot compile
| | 3 |
| When will a constructor executed? | | 2 |
| What is the difference between const int *ptr and int const
*ptr??? | | 2 |
| Definition of Object Oriented Programming in single line? | TCS | 14 |
| When is a memory allocated to a class? | | 3 |
| Base class has two public data members. How can i derive a
new class with one datamember as public and another data
member as private?. | | 2 |
| why we call c++ is object oriented lanaguage | HCL | 2 |
| How is exception handling carried out in c++? | | 1 |
| What is an orthogonal base class? | | 1 |
| What are the main differences between procedure oriented
languages and object oriented languages? | | 4 |
| Which is the only operator in C++ which can be overloaded
but NOT inherited? | | 3 |
| What is Method overloading? | | 4 |
| wht is major diff b/w c and c++? | | 3 |
| What is the difference between declaration and definition? | | 6 |
| What is public, protected, private? | Satyam | 4 |
| How Do you Code Composition and Aggregation in C++ ? | IBM | 1 |
| When is it necessary to use member-wise initialization
list in C++? | | 1 |
| What is Iteration Hierarchy?
What is what is Object behavioral concept?
| | 1 |
| What is namespace? | | 6 |
| |
| For more OOPS Interview Questions Click Here |