Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

inheritance in c#

class Animal {  
  // fields and methods
} 

// Dog inherits from Animal
class Dog : Animal {
  // fields and methods of Animal 
  // fields and methods of Dog 
}
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #inheritance
ADD COMMENT
Topic
Name
5+6 =