OOPS Interview Questions
Questions Answers Views Company eMail

How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?

IntraLogic,

1 9541

Contrast OOP and SOA. What are tenets of each?

Wipro,

1 12805

why c++ is called OOPS? waht is inherutance? what is compiler?

5 11221




What normal C constructs work differently in C++?

2 3351

Why and when is a virtual destructor needed?

5 12112

Why a "operator=(...)" when there is a copy ctor?

2 3449

what is object slicing?

L&T, Wipro,

9 40031

who is the founder of c++?

ONGC, Hexaware,

15 23257




//what is wrong with the programme?? #include template class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<g; g.set(); g.print(); }

1 2485

what is an instance of a class

5 4243

What is a class?

Infosys, TCS, Thylak,

32 11233

What is an object?

HCL,

13 7219

What is the difference between an object and a class?

3 3996

What is the difference between class and structure?

7 6214

What is public, protected, private?

Satyam,

6 11181


Post New OOPS Questions






Un-Answered Questions { OOPS }

Please send ford technologies placement paper 2 my mail id

750


what is the drawback of classical methods in oops?

2021


to find out the minimum of two integer number of two different classes using friend function

774


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

835


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

773


Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation

782


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

2645


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

934


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

1167


2. Give the different notations for the class.\

698


write a program to find 2^n+1 ?

625


when to use 'mutable' keyword and when to use 'const cast' in c++

741


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

787


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

819


What is the renewal class?

1271