Public class Car 'Here's our car object/class
Public CarStereo as string = "The Current Number One" ' Iv'e used a string here just for example purposes
End Class
Public Class Person' The Person who wants to use that car stereo
Public sub PlayCarStereo
messagebox.show(car.playcarstereo)
End Sub
End class
Public Class Person
Private MyCar as new Car ' We just bought a car (note the 'new' keyword that tells vb that we want a new instance of the car class)
public sub PlayCarStereo
Messagebox.show(car.playcarstereo)
End sub
End Class