Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

OOPS Interview Questions
Questions Answers Views Company eMail

can you give real time example for polymarphism

TCS,

5 5187

write a program to find the largest of two numbers without using for,while,switch,if else, conditional operator and do while using c++ pgmng language

Satyam,

3 6794

what is difference between objects and function

1 2418

what is difference between objects and function

3 3206

what type of questions

IBM,

1261

what is the definition of incapsulation

2 3177

what is the drawback of classical methods in oops?

2478

what is costructor?

1 3007

The expansion of GNU

3 6254

oops concept is used for?

Synergy,

3 11604

diff between Abstract class Interfaces?

4 3613

diff between Virtual mathod and abstract method?

1 1832

what is overloading and overriding?

7 4530

how to get the oracle certification? send me the answer

Oracle,

1207

how do you handle yourself when you feel the wald is aganist you

2 2921


Post New OOPS Questions






Un-Answered Questions { OOPS }

What is the importance of oop?

179


how to get the oracle certification? send me the answer

1207


How long to learn object oriented programming?

165


What is this pointer in oop?

161


What is constructor overloading in oop?

168






Why do pointers exist?

174


what is different between oops and c++

1602


Can enum be null?

159


What is a function in oop?

151


What is the difference between procedural programming and oops?

157


What are oops methods?

156


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

1238


State what is encapsulation and friend function?

210


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

1235


What are functions in oop?

155