Make all constructors private.


________________________________
 From: himanshu kansal <himanshukansal...@gmail.com>
To: Algorithm Geeks <algogeeks@googlegroups.com> 
Sent: Friday, 22 June 2012 1:44 PM
Subject: [algogeeks] Adobe interview question
 
How will u implement an abstract class in c++ w/o using pure virtual
function???

will making all the constructors and assignment operators protected
suffice....???
i doubt since the derived classes will be able to create objects of
that class....and according to definition of abstract class, no object
of it should be created...


any other way....??

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to