GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Sun  >  Technical
Go To First  |  Previous Question  |  
 Technical  |  Question 25 of 25    Print  
I have two classes A & B.. How can i declare & inoke my Class A constructor in Class B..Class A is not Super Class.

  
Total Answers and Comments: 3 Last Update: November 30, 2006     Asked by: Kiranbabu 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Abraham Varghese
 
Create a new instance of Class A in Class B using the required constructor of Class A.

Above answer was rated as good by the following members:
amitmsrit
January 06, 2006 07:16:43   #1  
Abraham Varghese        

RE: I have two classes A & B.. How can i declare & in...
Create a new instance of Class A in Class B using the required constructor of Class A.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
January 06, 2006 07:17:06   #2  
Abraham Varghese        

RE: I have two classes A & B.. How can i declare & in...
Create a new instance of Class A in Class B using the required constructor of Class A.
 
Is this answer useful? Yes | No
November 29, 2006 10:04:10   #3  
Nithya        

RE: I have two classes A & B.. How can i declare & in...
using friend function
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    


 
Go To Top


 Sponsored Links

 
Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape