Dinesh Kumar

Dinesh Kumar

  • NA
  • 107
  • 2k

Inheritance Topic

Aug 15 2016 3:00 AM
using System;
class parent
{
   public void par()
   {
      C.WL("hello parent"); 
   } 
class child:parent
{
   public void chil()
   {
      C.WL("hello Child"); 
   } 
this type i have 50class
and if i want call this all class then i have to create Class instance if i have 500 class then again i have to  create 500 class instance then what is code reuse..? i have doubt. help me
i don't  want call n time i want create one object and call this all class object how please help me..
 

Answers (2)