| Other OOPS Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How is data security provided in Object Oriented languages?
? | | 3 |
| What is the correct syntax for inheritance?
1) class aclass : public superclass
2) class aclass inherit superclass
3) class aclass <-superclass
| | 4 |
| What are the advantanges of modularity | | 2 |
| Why do we use virtual functions? | | 3 |
| Explain the concept of abstracion and encapsulation with
one example. What is the difference between them? | PCS | 2 |
| Does c++ support multilevel and multiple inheritance? | Wipro | 5 |
| Tell me the scenario,Where we can use interfaces or
Abstract class.And What is the difference between
interfaces and abstract class? | | 3 |
| What is encapsulation? | TCS | 8 |
| what is object slicing?
| Wipro | 4 |
| What do you mean by multiple inheritance and multilevel
inheritance? Differentiate between them. | | 2 |
| What is public, protected, private? | Satyam | 4 |
| Definition of Object Oriented Programming in single line? | TCS | 14 |
| What is command routing in MFC | GE | 1 |
| what is an instance of a class | | 2 |
| what is virtual function? | Infosys | 11 |
| what is the use of mutable key word | HCL | 2 |
| Difference between new operator and operator new | | 2 |
| 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 |
| What do you mean by inline function? | | 1 |
| What is polymorphism ? Explain with examples | Ness-Technologies | 6 |
| |
| For more OOPS Interview Questions Click Here |