How to call base class constructor in c#.net ?
Posted by Gopal on 15 February, 2009
No comments yet
This item was filled under [ Interview Questions ]
example:
class one
{
one()
{
}
}
//This is Inheritance of base class.
class two:one
{
//this is the way to calling base class constructor
two:one()
{
}
}
By Inheriting the base class we can reuse the functionality of base class in to sub class
here one is base class two is sub class.