Coding
Coding
~~~~~~
Public Class Class1
Private op1, op2
Property operand1 () As Single
Get
Return op1
End Get
Set (ByVal value As Single)
op1 = value
End Set
End Property
Property operand2 () As Single
Get
Return op2
End Get
Set (ByVal value As Single)
op2 = value
End Set
End Property
End Class
Public Class Class2
Inherits Class1
Public Function add (ByVal op1 As Single, ByVal op2 As Single) As Single
Return op1 + op2
End Function
Public Function subtract (ByVal op1 As Single, ByVal op2 As Single) As Single
Return op1 - op2
End Function
Public Function multiply (ByVal op1 As Single, ByVal op2 As Single) As Single
Return op1 * op2
End Function
Public Function divide (ByVal op1 As Single, ByVal op2 As Single) As Single