Show/Hide Toolbars

XSharp

'function' : cannot override because 'property' does not have an overridable get accessor

 

A try was made to define an override for a property accessor when the base class has no such definition to override. You can resolve this error by:

 

•Adding a set accessor in the base class.

•Removing the set accessor from the derived class.

•Hiding the base class property by adding the new keyword to a property in a derived class.

•Making the base class property virtual.

 

For more information, see Using Properties.

Example

 

The following sample generates XS0545.

 

 

// XS0545.prg  
// compile with: /target:library