GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 22 of 258    Print  
Can we have "Virtual Constructors"?

  
Total Answers and Comments: 3 Last Update: September 14, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 30, 2005 05:36:37   #1  
Ruth Samuel        

RE: Can we have "Virtual Constructors"?
A virtual call is a mechanism to get work done given partial information. In particular virtual allows us to call a function knowing only an interfaces and not the exact type of the object. To create an object you need complete information. In particular you need to know the exact type of what you want to create. Consequently a call to a constructor cannot be virtual.
 
Is this answer useful? Yes | No
June 07, 2006 01:50:25   #2  
nileshkorpe Member Since: May 2006   Contribution: 2    

RE: Can we have "Virtual Constructors"?
No constructor cannot be virtualNilesh Korpe
 
Is this answer useful? Yes | No
September 14, 2006 09:20:22   #3  
kalyanji        

RE: Can we have "Virtual Constructors"?

Hi

In My opinion there is no such concept In C++

But some says Can anyone tell mehow is it possible???


 
Is this answer useful? Yes | No


 
Go To Top


 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