yeah use pure virtual fxn...... On Fri, Jun 22, 2012 at 3:41 PM, himanshu kansal < [email protected]> wrote:
> i told the interviewer...bt he said thn the constt would not be accessible > to derived class also....he told me dt u shld make the constt. > protected....dats why i ws confused... > > > On Fri, Jun 22, 2012 at 2:38 PM, raghavan M <[email protected] > > wrote: > >> Make all constructors private. >> >> >> ------------------------------ >> *From:* himanshu kansal <[email protected]> >> *To:* Algorithm Geeks <[email protected]> >> *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 [email protected]. >> To unsubscribe from this group, send email to algogeeks+ >> [email protected]. >> 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 [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > > Regards > Himanshu Kansal > Msc Comp. sc. > (University of Delhi) > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
