Hello All,
I am back with a new problem.This time i am doing a console application in vb.net as follows
Class Pub Public price As Single Public title As String Public Sub New(ByVal p As Single, ByVal t As String) price = p title = t End Sub Public Sub display() Console.WriteLine(price + " " + title) End Sub End ClassClass Book Inherits Pub Public page As Integer Public Sub New(ByVal p As Single, ByVal t As String, ByVal p1 As Integer) MyBase.New(p, t) page = p1 End Sub Public Sub Show() MyBase. Console.WriteLine(page)
End Sub Sub Main() Dim b1 As Book = New Book(25.7, "Radheya", 51) b1.Show()
End SubEnd Class
The problem arrives to this part
Public Sub Show() MyBase. Console.WriteLine(page)
End Sub
Please anyone tell me how can we call the base class member function into the derived class member function.
Thanks & Regards
Prashant S. More