Posts Tagged ‘Oop’

How to call base class constructor in c#.net ?

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.

Continue reading...