Example of Drive and Base class in Inheritence

Phagu007
Posted by Phagu007 under C# category on | Points: 40 | Views : 747
using System;
class Applicant()
{
public Applican()
{
CommanField=50;
}
public int CommanField;
public void CommanField;
public void commanMethod()
{
Console.Writeline("Applicant.comman Method");
}
}
Class MemA:Applicant
{
public void SomeMethodSpecToMemA()
{
Console.Writeline("MemA.SomeMethodSpecToMemA");
}
public void Main()
{
MemA memA=new MemA();
memA.SomeMethodSpecToMemA();
}
}

Comments or Responses

Login to post response