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
What is virtual destructor? Why? csc   3  3094
What is multiple inheritance? Give Example mind-tree   6  7999
write a program to print * * * * * *    2  2211
What is the renewal class? ebix   0  1042
what is the difference between virtual function and destoctor?    1  2169
what is code for call by value and call by reference?    1  2535
Iam doing my project on instant messaging , if you any new ideas regarding this project ,please suggest it?    2  1613
Write an operator overloading program to write S3+=S2.    2  1969
Write A Program using Single and Multiple Inheritance.    1  2209
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions) accenture   0  2375
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)    1  2866
Write an operator overloading program to Overload ‘>’ operator so as to find greater among two instances of the class.    1  2817
Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.    3  20118
what is the use of classes in c++; hcl   2  3516
tel me oops defination in single line    2  2977
E-Mail New Answers        Answer Selected Questions        Post New oops Questions
Prev    1   ... 4   ... 7   ... 10   ... 13   ... 16    18   [19]    20  ... 22   ... 25   ... 28   ... 31   ... 34   ... 37    Next
 
 
 
 
 
Un-Answered Questions
 
 Question Views   Select
 
Please send ford technologies placement paper 2 my mail id 597
How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram 1254
write a program to find 2^n+1 ? 453
Why is it so that we can have virtual constructors but we cannot have virtual destructors? 1654
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception). 624
to find out the minimum of two integer number of two different classes using friend function 583
How to call a non virtual function in the derived class by using base class pointer 2620
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line. 654
2. Give the different notations for the class.\ 474
hi all..i want to know oops concepts clearly can any1 explain?? 651
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it. 670
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 611
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions) 2375
any one please tell me the purpose of operator overloading 891
how to get the oracle certification? send me the answer 501
E-Mail New Answers        Answer Selected Questions