Inheritance Sample
Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim Car As New Cars Car.Engine = "Renault" Car.SeatingCapacity = 5 Car.BHP = 5000 Car.Color = Color.Black Car.Type = InheritanceSample.Cars.CarType.Sedan 'This from Child Class Car.GetMaxSpeed() ' Will Return 0 Dim Bus As New Buses Bus.Engine = "VOLVO" Bus.SeatingCapacity = 25 Bus.BHP = 8000 Bus.Color = Color.Yellow Bus.IsFrontLoadingEngine = False 'This from Child Class ...