This issue describes how to implement the inheritance concept exercise for the C# track.
Getting started
Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:
The goal of this exercise is to teach the student the Concept of Inheritance in C#.
Learning objectives
Know what inheritance is.
Know how to inherit from a class.
Know that all types inherit from object.
Know what abstract and sealed classes are.
Know what abstract and virtual methods are.
Know how to override methods.
Know about the protected visibility modifier.
Out of scope
Extending types through extension methods.
Concepts
This Concepts Exercise's Concepts are:
inheritance: know what inheritance is; know how to inherit from a class; know that all types inherit from object; know what abstract and sealed classes are; know what abstract and virtual methods re; know how to override methods; know about the protected visibility modifier.
Prequisites
This Concept Exercise's prerequisites Concepts are:
classes: defining base and derived classes.
Any data types used in this exercise (e.g. strings) should also be added as prerequisites.
Resources to refer to
Hints
Inheritance: tutorial introducing the various aspects of inheritance.
After
Inheritance: tutorial introducing the various aspects of inheritance.
Representer
This exercise does not require any specific representation logic to be added to the representer.
Analyzer
This exercise does not require any specific analyzer logic to be added to the analyzer.
This issue describes how to implement the
inheritance
concept exercise for the C# track.Getting started
Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:
Please also watch the following video:
Goal
The goal of this exercise is to teach the student the Concept of Inheritance in C#.
Learning objectives
object
.protected
visibility modifier.Out of scope
Concepts
This Concepts Exercise's Concepts are:
inheritance
: know what inheritance is; know how to inherit from a class; know that all types inherit fromobject
; know what abstract and sealed classes are; know what abstract and virtual methods re; know how to override methods; know about theprotected
visibility modifier.Prequisites
This Concept Exercise's prerequisites Concepts are:
classes
: defining base and derived classes.Any data types used in this exercise (e.g.
strings
) should also be added as prerequisites.Resources to refer to
Hints
After
Representer
This exercise does not require any specific representation logic to be added to the representer.
Analyzer
This exercise does not require any specific analyzer logic to be added to the analyzer.
Implementing
To implement this exercise, please follow these instructions.
Help
If you have any questions while implementing the exercise, please post the questions as comments in this issue.