Advertisement
andrefecto

Untitled

Dec 11th, 2015
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Triangle
  2.  
  3.     'inheart parallelogram
  4.    Inherits Parallelogram
  5.     Public Sub New()
  6.         MyBase.New()
  7.     End Sub
  8.  
  9.     Public Sub New(ByVal dblB As Double, ByVal dblH As Double)
  10.         MyBase.New(dblB, dblH)
  11.     End Sub
  12.  
  13.     'calculate area of the triangle
  14.    Public Overrides Function GetArea() As Double
  15.         Return MyBase.GetArea / 2
  16.     End Function
  17. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement