you have 4 classes A,B,C,D and class Z is derived from all these classes
using
Class Z: public A,private B,Protected C, Virtual D
What is the order of constructor call?
...plz reason out also
--
Regards,
$iva
--
You received this message because you are subscribed to the Google Groups
A
B
C
D
Sanju
:)
On Mon, Aug 22, 2011 at 8:17 AM, sivaviknesh s sivavikne...@gmail.comwrote:
you have 4 classes A,B,C,D and class Z is derived from all these classes
using
Class Z: public A,private B,Protected C, Virtual D
What is the order of constructor call?
...plz reason out also
Z at last.
Sanju
:)
On Mon, Aug 22, 2011 at 8:19 AM, Sanjay Rajpal srn...@gmail.com wrote:
A
B
C
D
Sanju
:)
On Mon, Aug 22, 2011 at 8:17 AM, sivaviknesh s sivavikne...@gmail.comwrote:
you have 4 classes A,B,C,D and class Z is derived from all these classes
using
Class Z:
its left to right always !
On Mon, Aug 22, 2011 at 8:49 PM, Sanjay Rajpal srn...@gmail.com wrote:
A
B
C
D
Sanju
:)
On Mon, Aug 22, 2011 at 8:17 AM, sivaviknesh s sivavikne...@gmail.comwrote:
you have 4 classes A,B,C,D and class Z is derived from all these classes
using
Class Z:
agree with sukran.
Sanju
:)
On Mon, Aug 22, 2011 at 8:20 AM, sukran dhawan sukrandha...@gmail.comwrote:
its left to right always !
On Mon, Aug 22, 2011 at 8:49 PM, Sanjay Rajpal srn...@gmail.com wrote:
A
B
C
D
Sanju
:)
On Mon, Aug 22, 2011 at 8:17 AM, sivaviknesh s
@sukran ur r wrong man
the construdor of virtual base class are called first otherwise it is from
left to right
so the correct order is
D A B C Z
On Mon, Aug 22, 2011 at 8:25 AM, Sanjay Rajpal srn...@gmail.com wrote:
agree with sukran.
Sanju
:)
On Mon, Aug 22, 2011 at 8:20 AM, sukran
hey sorry didnt notice virtual :)
On Mon, Aug 22, 2011 at 9:38 PM, coder dumca coder.du...@gmail.com wrote:
@sukran ur r wrong man
the construdor of virtual base class are called first otherwise it is from
left to right
so the correct order is
D A B C Z
On Mon, Aug 22, 2011 at 8:25 AM,
+1 coder
On Mon, Aug 22, 2011 at 9:41 PM, sukran dhawan sukrandha...@gmail.comwrote:
hey sorry didnt notice virtual :)
On Mon, Aug 22, 2011 at 9:38 PM, coder dumca coder.du...@gmail.comwrote:
@sukran ur r wrong man
the construdor of virtual base class are called first otherwise it is
yeah D first ...
On Mon, Aug 22, 2011 at 10:53 PM, sagar pareek sagarpar...@gmail.comwrote:
+1 coder
On Mon, Aug 22, 2011 at 9:41 PM, sukran dhawan sukrandha...@gmail.comwrote:
hey sorry didnt notice virtual :)
On Mon, Aug 22, 2011 at 9:38 PM, coder dumca coder.du...@gmail.comwrote: