prav_roy
Well-known member
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
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