GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  C++
Go To First  |  Previous Question  |  Next Question 
 C++  |  Question 42 of 203    Print  
Can we have "Virtual Constructors"?

  
Total Answers and Comments: 4 Last Update: March 05, 2006     Asked by: suji 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Lily
 
No. Virtual Constructor is not allowed.

Above answer was rated as good by the following members:
newlife
September 28, 2005 00:45:50   #1  
Lily        

RE: Can we have "Virtual Constructors"?
No. Virtual Constructor is not allowed.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 10, 2005 10:55:13   #2  
m11aravind Member Since: November 2005   Contribution: 4    

RE: Can we have "Virtual Constructors"?

there are no virtual construcors ---Moparthi Aravind


 
Is this answer useful? Yes | No
December 02, 2005 04:14:37   #3  
Dhiraj Nadgouda        

RE: Can we have "Virtual Constructors"?
Yes we cannot have virtual constructors. But if the need arises we can simulate the implementation of virtural constructor by calling a Init method from the constructor which should be a virtual function.
 
Is this answer useful? Yes | No
March 04, 2006 23:33:50   #4  
priya        

RE: Can we have "Virtual Constructors"?
we can have virtual destructor but we cant have virtual constructor.
 
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