On 03/04/2012 06:16 PM, David wrote:
Is this intended behaviour? http://ideone.com/xrvvL

shouldn't the 2nd writeln print the same as the first, well at least the
same content of i?

This is intended behaviour. You have two distinct definitions of i. If you want to set i to 2 in the derived class, do so in the class constructor.

Reply via email to