Either B.f or C.f, depending on which class the object you call g on is an instance of.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Oct 08, 2004
ok, I have to be more precise, sorry...
If I have : toto instaceof C and I call : toto.g()
both call to f() and this.f() from method g() will call f() from C ?
any way to call f() from B ? cast "this" to B ? ((B) this).f() ?