Delete C#核心/Lesson12_继承-继承的基本概念练习 directory

to reset the gits
This commit is contained in:
Ki5ter
2025-09-08 15:59:37 +08:00
committed by GitHub
parent 46202d82bf
commit 76543a1a37
2 changed files with 0 additions and 45 deletions
@@ -1,34 +0,0 @@
namespace Lesson12_继承_继承的基本概念练习
{
class Human
{
public string name;
public int age;
public void Speak()
{
Console.WriteLine("说话");
}
}
class Warrior : Human
{
public int atk;
public void Attack()
{
Console.WriteLine("攻击");
}
}
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
Warrior w = new Warrior();
w.name = "HK";
w.age = 18;
w.Speak();
w.atk = 5;
w.Attack();
}
}
}