18 NOV 2019

toop

We learned about inheritance, abstract classes, abstract methods, calling base.ToString(), class inside another class, array of classes, class as parameter type of a method

More topics covered:

  • Creating nested new: derived class inside parent class
  • Creating method which accepts a parent base class (shape). this allows you to send any derived class (i.e. circle, rectangle)
  • Abstract class – usually adding “Base” postfix, i.e. ShapeBase
  • Creating array of classes, create new items of each class inside
  • Polymorphism

Links:

Leave a comment