| Other OOPS Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is virtual function in c++ | | 4 |
| Given two strings like x=?hello? and y=?open?, remove any
character from string x which is also used in string y,
thus making the result x=?hll?.
| IBM | 8 |
| Tell me the scenario,Where we can use interfaces or
Abstract class.And What is the difference between
interfaces and abstract class? | | 3 |
| swapping program does not use third variable | | 4 |
| What are virtual functions? | | 2 |
| Write a macro for swapping integers | | 3 |
| Should you protect the global data in threads? Why or why
not?
| IBM | 1 |
| what is the virtual function overhead, and what is it used
for ? i hope i can get and appropriate answers, thanks a lot.... | | 5 |
| write a c++ program to find maximum of two numbers using
inline functions. | | 1 |
| What is the Advantage of Interface over the Inheritance in
OOPS? | | 2 |
| What is Method overloading? | | 4 |
| what is difference b/w object based and object oriented
programming language? | Infosys | 2 |
| What is polymorphism ? Explain with examples | Ness-Technologies | 6 |
| Why many objects can working together?
How objects working togetherM
I want to see example code.
| | 2 |
| how to swap to variables without using thrid variable in java? | | 3 |
| Explain the concept of abstracion and encapsulation with
one example. What is the difference between them? | PCS | 2 |
| What is the difference between pass by reference and pass by
value? | TCS | 6 |
| Can we call a base class method without creating instance? | | 4 |
| In the following declaration of main, "int main(int argc,
char *argv[])", to what does argv[0] usually correspond?
1) The first argument passed into the program
2) The program name
3) You can't define main like that
| | 4 |
| What is function overloading and operator overloading? | | 2 |
| |
| For more OOPS Interview Questions Click Here |