- Q6 Determine The Output Of The Following Vb Net Program Class Vehicle Overridable Function Wheel As String Return D 1 (35.78 KiB) Viewed 28 times
Q6. Determine the output of the following VB.net Program. Class vehicle Overridable Function wheel() As String Return "D
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Q6. Determine the output of the following VB.net Program. Class vehicle Overridable Function wheel() As String Return "D
Q6. Determine the output of the following VB.net Program. Class vehicle Overridable Function wheel() As String Return "Depends on the size" End Function End Class Class car: Inherits vehicle Function Carwheel() As String Return " Car have four wheels" End Function End Class Class bus : Inherits vehicle Overrides Function wheel() As String Return "Bus have six wheels" End Function End Class Module Modulel Sub Main() Dim obl As New vehicle Dim ob2 As New car Dim ob3 As New bus Console.WriteLine(ob1.wheel) Console.Write(ob2.wheel() Console.Write(ob3.wheel() Console.ReadKeyo End Sub End Module Output