C#.Net 2
======
I have created a base class called clsCommon which will be use in every classes. I have inharited as follows.
public class otherClass:clsCommon
{
}
But here i am facing one problem that instead of inheritance of clsCommon its public function is not showing in other classes.
HOW CAN I DIRECTLY ACCESS clsCommon CLASS FUNCTION IN OTHER CLASSES WITHOUT AFFECTING PROCESS OF clsCommon CLASS FUNCTION
Thanks in advance
I have create a base class which will use in every class in C#.Net and ASP.Net but there is some error?
You need to create some type of function first like
public class otherClass:clsCommon
{
public void myFunction (int someInt)
{
this.aclsCommonFunction(); // should access the parent class function
} // end of function
}// end of class
and in the function definition you can also override the parent class' function.
RJ
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment