If Else Inherits Switch Class.