我在继承类中能够把该属性屏蔽吗?
意思是这样的
Tbase类中有属性
protected
property numer :read .. write ...;
....
TDrawbase = class(Tbase)
private
property number ;***********该方法可以实现吗?
....
TMyDrawBase = class(TDrawBase)
要属性number不能在TMyDrawBase中使用
意思是这样的
Tbase类中有属性
protected
property numer :read .. write ...;
....
TDrawbase = class(Tbase)
private
property number ;***********该方法可以实现吗?
....
TMyDrawBase = class(TDrawBase)
要属性number不能在TMyDrawBase中使用
TMyDrawBase = class(TDrawBase)
private
protected
public
property number ;
private
proceduer readNumber;
published
property number read readNumber;
end;这样就只读了
类成员的访问权限在子类中被重定义时,只能加大权限,不能减小.