Programming

  1. Explain the term Inheritance and the terms which binds to inheritance
  2. Show how you could implement inheritance in your project
  3. Show how you can test your code in your Program.cs ← Example Answer Not Included ❗

Question 1

Inheritance is used to provide a basefor other classes which will contain the same properties and methods creating a SuperClass / Abstract Class which contains properties and methods which other SubClass / ChildClass also need prevents the need for writing the same code multiple times

Question 2

A Virtual method can be overwritten by subclasses using the Overwritemethod


System Development

  1. Explain the use of Class Diagrams
  2. Provide an example to how inheritance could look in a class diagram
  3. Why could it be useful to use inheritance?
  4. Which diagram could be used to explain the domain?

Question 1

A Class Diagram is made to easily determine what a class needs to contain of Methodsand Propertiesalong with its Access modifier, Class Type (Abstract or Child) and its relations to other classes

Question 2