| Other OOPS Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the difference between const int *ptr and int const
*ptr??? | | 2 |
| We have a scale and 7 balls. 1 ball is heavier than all the
rest. How to determine the heaviest ball with only 3
possible weighing attempts?
| IBM | 3 |
| Write a macro for swapping integers | | 3 |
| When will a constructor executed? | | 3 |
| what is virtual destructor | TCS | 5 |
| Why a "operator=(...)" when there is a copy ctor? | | 2 |
| What is R T T I ? | Ness-Technologies | 3 |
| What is OOPS and How it is different from Procedural
Programming ? | HP | 10 |
| //what is wrong with the programme??
#include<iostream.h>
template <class first>
class dd
{
first i;
public:
void set();
void print();
};
void dd< first>:: set()
{
cin>>i;
}
void dd< first>::print()
{
cout<<"\n"<<i;
}
void main()
{
dd <char>g;
g.set();
g.print();
} | | 1 |
| difference between overloading and overridding | | 2 |
| what is the basic concept of inheritance? | | 4 |
| Tell me the scenario,Where we can use interfaces or
Abstract class.And What is the difference between
interfaces and abstract class? | | 3 |
| How Do you Code Composition and Aggregation in C++ ? | IBM | 1 |
| to remove the repeated numbers from the given .
i.e..,
if the input is 12233
output should of
123
| | 1 |
| What is command routing in MFC | GE | 1 |
| What do you mean by inline function? | | 1 |
| Please tell me the oops concept with detailed answer | EEE | 4 |
| What is the correct syntax for inheritance?
1) class aclass : public superclass
2) class aclass inherit superclass
3) class aclass <-superclass
| | 4 |
| What is virtual class and friend class? | Intel | 2 |
| how to find no of instances of an object in .NET? | Infosys | 1 |
| |
| For more OOPS Interview Questions Click Here |