Link to home
Start Free TrialLog in
Avatar of jdana
jdanaFlag for United States of America

asked on

In C#.NET (or VB.NET) are both methods and properties overridable?

In C#.NET (or VB.NET) are both methods and properties overridable?
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jdana

ASKER

Thanks.
NP  = )
Yes, you can declare either as virtual (overridable in VB.NET). Methods or properties defined as "abstract" are also overridable and in fact have to be overridden.

Properties are just methods under the hood. When compiled they are turned into get_MyProperty and set_MyProperty methods respectively.