Query in Inheritence

prav_roy

Well-known member
Joined
Sep 10, 2005
Messages
70
Location
Mumbai
Programming Experience
1-3
hi All,
i have stuck up somewhere, i need your help, i am developping an application in that i have one base class of type mustinherit , i am definning all the methods of mustinherit class in derired class which works obsolutely fine, but my problem is that, i want to pass parameter to the base class from my aspx page
my flow goes like this

Public MustInherit Class DataAccess
Public MustOverride Function NewMethod(parameter)as string
Public MustOverride Function NewMethod1(parameter)as string
Public MustOverride Function NewMethod2(parameter,parameter)as boolean

Public Class SqlDataAccessLayer

inherits DataAccess

Public MustOverride Function NewMethod(parameter)as string
defination goes here....

Public MustOverride Function NewMethod1(parameter)as string
defination goes here....

Public MustOverride Function NewMethod2(parameter,parameter)as boolean
defination of all theh methods goges here....

now i have one more class, say for example
Public Class AddNewItem
from this class i want to pass a parameter to
Public MustOverride Function NewMethod(parameter)as string

since this method belongs to Mustinherit classs how do i carry out this, i know i can not create object of mustinherit class in my AddNewItem class, is there any substitute for that..
Regards..
Praveen
 
How very unclear your question is. I see the base class, and perhaps the SDAL if these method are Overrides, but where does class AddNewItem fit this picture and what relation does it have with a NewMethod? However you had this planned I get an inkling you are in search of the MyBase keyword, look it up.
 
Back
Top