

We learned about ctor overloading, method overloading, using this keyword to call from one ctor to another, using this keyword to refer to class data fields, calling specific base ctor by using base key word, class Object, virtual methods
More topics covered:
-
- All classes inherit from Object class
- Using this.[field-name] in ctor, for example:
Person(int id) { this.id = id; } - : this , for example:
Person(int id) { this.id = id; }
Person(int id, string name) :
this(id) { this.name = name } - : base , for example:
Person(int id) { this.id = id; }
Employee : Person
Employee(int id, string name) :
base (id) { this.name = name } - Creating our own custom virtual methods
- +Override our own custom virtual methods
- Virtual vs. abstract
- Passing arguments to console application using Command Prompt
- Adding readme.txt into GITHUB folder
Links: