27th Nov 2018, 4:24 PM
Ishaq Za'rour
6 Antworten
+ 10
The first thing that is created is the super class (no child without parents), so the constructor of class A is invoked first. Next thing is the creation of an object of class B. Hope this helps to understand the output ^^
27th Nov 2018, 4:29 PM
Tashi N
Tashi N - avatar
+ 4
bobz addict We don't want this kind of comments here, please refrain from spamming. Many thanks.
27th Nov 2018, 4:27 PM
Tashi N
Tashi N - avatar
+ 1
Tashi N ohhh so this explains the output"world" Thank you very much
27th Nov 2018, 4:30 PM
Ishaq Za'rour
0
Hhhh
27th Nov 2018, 4:24 PM
Ishaq Za'rour
0
Its ok he is my friend is just joking
27th Nov 2018, 4:28 PM
Ishaq Za'rour
0
Tashi N ill tell him not to do it again
27th Nov 2018, 4:28 PM
Ishaq Za'rour