足なんて飾りです。偉い人にはそれがわからんのです。
Public Class ジオングPrivate _右腕 As 腕
Public ReadOnly Property 右腕() As 腕
Get
Return _右腕
End Get
End Property
Private _左腕 As 腕
Public ReadOnly Property 左腕() As 腕
Get
Return _左腕
End Get
End Property
Private _頭部 As 頭
Public Property 頭部() As 頭
Get
Return _頭部
End GetEnd Property
Private _胸部 As 胸
Public ReadOnly Property 胸部() As 胸
Get
Return _胸部
End Get
End Property
Private _腰部 As 腰
Public ReadOnly Property 腰部() As 腰
Get
Return _腰部
End Get
End Property
Public Overridable ReadOnly Property 脚部() As 脚
Get
Throw New InvalidOperationException("足なんて飾りです。偉い人にはそれがわからんのです。")
End Get
End PropertyEnd Class
Public Class パーフェクトジオング
Inherits ジオングPrivate _脚部 As 脚
Public Overrides ReadOnly Property 脚部() As 脚
Get
Return _脚部
End Get
End PropertyEnd Class
コンストラクタは省略。(←それか?書くこと。