Thursday, February 9, 2012

Interesting phenomenon with class constructors in inherited classes

when the constructor is static first the descendant will run and then the ancestor.
when its an instance constructor its the other way around.

the reason being that there is no inheritance in static contructors

No comments:

Post a Comment