GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 22 of 255    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  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape