Update improvements.md

This commit is contained in:
Mark J Price 2023-03-11 11:04:09 +00:00
parent 2665dc6922
commit 689191d060

View file

@ -203,7 +203,8 @@ class Delta : IAlpha, IBeta { void M1() { } void M2() { } }
class Episilon : Delta { }
// A class with one inheritable method and one abstract method that must be implemented in sub classes.
class Zeta { void M3() { } abstract void M4(); }
// A class with at least one abstract member must be decorated with the abstract keyword to prevent instantiation.
abstract class Zeta { void M3() { } abstract void M4(); }
// A class inheriting the M3 method but must provide an implementarion for M4.
class Eta : Zeta { void M4() { } }