Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created April 3, 2019 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongorman/b6b6f45b5148e1525a2cdfbe54cbc4ce to your computer and use it in GitHub Desktop.
Save jasongorman/b6b6f45b5148e1525a2cdfbe54cbc4ce to your computer and use it in GitHub Desktop.
Option Explicit
Implements Room
Implements FloorLevel
Private mWidth As Double
Private mLength As Double
Private mLevel As String
Public Property Let Width(ByVal value As Double)
mWidth = value
End Property
Public Property Let Length(ByVal value As Double)
mLength = value
End Property
Public Property Let Level(ByVal value As String)
mLevel = value
End Property
Public Function Room_Area() As Double
Room_Area = mWidth * mLength
End Function
Public Function FloorLevel_FlightsOfStairs() As Integer
Select Case mLevel
Case "G"
FloorLevel_FlightsOfStairs = 0
Case "B"
FloorLevel_FlightsOfStairs = -1
Case Else
FloorLevel_FlightsOfStairs = CInt(mLevel)
End Select
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment