ALLInterview.com :: Home Page
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
   
 
 Categories >> Software >> Programming Languages >> C++ >> OOPS
 
Suggest New Category 
 


 

Question Asked @ Answers Views     Select
Petrol pump mgt. system: To design a program that display an interface for the sale of the Petrol and then make the entries at the backend in the database. wipro   1  1923
what are the uses of C++    1  1238
What are the fields of vtable mphasis   1  1767
How to overload new operator in c++    2  1676
How to overload postfix operator in c++ mphasis   1  1505
why to use operator overloading    3  1711
Difference between vector and array    2  1717
what is the use of template classes in c++    1  1226
what is new operator in c++    1  1511
why the memory allocated with new cant be freed using free()    2  1646
why to use template classes in c++?    1  1062
What is ambiguity in c++ mphasis   3  8711
class type to basic type conversion    0  653
what is main difference between object oriented object base wipro   2  1580
what are the characteristics of oops? niit   6  15161
E-Mail New Answers        Answer Selected Questions        Post New oops Questions
Prev    1   ... 4   ... 7   ... 10    12   [13]    14  ... 16   ... 19   ... 22   ... 25   ... 28   ... 31   ... 34   ... 37    Next
 
 
 
 
 
Un-Answered Questions
 
 Question Views   Select
 
hi all..i want to know oops concepts clearly can any1 explain?? 530
How Do you Code Composition and Aggregation in C++ ? 17974
What is nutshell in programming language? 4464
explain sub-type and sub class? atleast u have differ it into 4 points? 678
Please send ford technologies placement paper 2 my mail id 485
Will I be able to get a picture in D drive to the c++ program? If so, help me out? 557
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory 1389
what is the sylabus for priliminaries? 443
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works? 263
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer 377
What is debug class?what is trace class? What differences are between them? With examples. 424
Write a program to sort the number with different sorts in one program ?? 660
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). 483
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 493
Prepare me a program for the animation of train 793
E-Mail New Answers        Answer Selected Questions