public void PrintID() { CorporateCustomer cc = new CorporateCustomer(); cc._id = 101; Console.WriteLine(cc._id); }
public void printID1() { /*since id is an instance field we need to create an object of derived class.*/ CorporateCustomer cc = new CorporateCustomer(); cc.ID1 = 10; }
static void Main(string[] args) { CorporateCustomer c1 = new CorporateCustomer(); c1.PrintID(); Console.ReadKey(); }