Taking what we have already learned about the four pillars of OOP, we will have a look at the areas in our application that make use of these concepts to provide the building blocks of Cricket Score Tracker.
Open up the BaseClasses
folder and double click on the Player.cs
file. You will see the following code:
namespace cricketScoreTrack.BaseClasses { public abstract class Player { public abstract string FirstName { get; set; } public abstract string LastName { get; set; } public abstract int Age { get; set; } public abstract string Bio { get; set; } } }
This is our abstract class. The abstract
modifier in the class declaration and the properties tells us that this thing we are going to modify has missing or incomplete implementation. It, therefore, is only intended for use as a base class. Any member marked as abstract must be implemented by classes that are derived from our Player
abstract...