++rahul

see a constructor cant recieve an srgument of the same class type(by value),
although it can recieve a reference of same class type, because the process
become recursiv eand go infinite till stack overflow

On Tue, Aug 30, 2011 at 9:28 AM, rahul sharma <rahul23111...@gmail.com>wrote:

> a.  default constructor
> c. copy
> d. parametrized.....
>
> in b it should recieve reference
>
>
>
> On Aug 30, 9:24 pm, Anuj kumar <anonymize...@gmail.com> wrote:
> > Q)Given a class named Book, which of the following is not a valid
> > constructor?
> > (A) Book ( ) { }
> >  (B) Book ( Book b) { }
> > (C) Book ( Book &b) { }
> >  (D) Book (char* author, char* title) { }
> > Ans:B
> >
> > how plz give reason..
>
> --
> 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