Hi everybody,
I have a doubt about this code.
The output is 5.
The source is Whizlabs SCJP5.0.
I would like to know why the output is 5 and not 6. Because I thought that in this code the
polymorphism had been applied then the call c1.getObject() would return the object B.
Can anybody help me?