| Other OOPS Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a c++ program to find maximum of two numbers using
inline functions. | | 1 |
| what is the usage of clas templates | | 5 |
| suppose A is a base class and B is the derved class. Both
have a method foo which is defined as a virtual method in
the base class. You have a pointer of classs B and you
typecast it to A. Now when you call pointer->foo, which
method gets called?
The next part of the question is, how does the compiler
know which method to call? | EA-Electronic-Arts | 2 |
| What is R T T I ? | Ness-Technologies | 3 |
| write a program for function overloading? | | 4 |
| to remove the repeated numbers from the given .
i.e..,
if the input is 12233
output should of
123
| | 1 |
| What do you mean by pure virtual functions? | | 4 |
| In which cases you use override and new base? | | 1 |
| What are the main differences between procedure oriented
languages and object oriented languages? | | 4 |
| WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND
ENCAPSULATION?
PLEASE EXPLAIN IT.
| | 3 |
| What is the difference between const int *ptr and int const
*ptr??? | | 2 |
| When a private constructer is being inherited from one
class to another class and when the object is instantiated
is the space reserved for this private variable in the
memory?? | Honeywell | 12 |
| all about pointers | | 1 |
| Difference between new operator and operator new | | 2 |
| Why a "operator=(...)" when there is a copy ctor? | | 2 |
| what is the need of abstraction? what is abstraction?what
is the abstraction for stack? | Verizon | 5 |
| //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 |
| what is meant by files? | Infosys | 2 |
| What is the Advantage of Interface over the Inheritance in
OOPS? | | 2 |
| WHEN A COPY CONSTER IS CALL ?
| | 1 |
| |
| For more OOPS Interview Questions Click Here |