class A pro foo from var as int class B inherits A def foo as int is override # .error. Cannot declare a method named "foo" because the base member "foo" is a property. return 1