Call a base class constructor from derived class

Madhu.b.rokkam
Posted by Madhu.b.rokkam under C# category on | Points: 40 | Views : 1895
//Base 
public class ParentClass
{
public ParentClass(string a, int b, double c)
{
//your code here
}
}

//Derived
public class ChildClass : ParentClass
{
public ChildClass()
: base("Madhu", 31, 1000.00)
{
}
}

Comments or Responses

Login to post response