BlazorApp/Bullet6/Solution2/Models/Entity.cs

15 lines
306 B
C#

namespace Bullet6.Solution2.Models
{
public abstract class Entity
{
public string Name { get; set; }
protected abstract void PrintInternal();
public void PrintName()
{
Console.WriteLine(this.Name);
this.PrintInternal();
}
}
}