From 76543a1a37b7784da297624c1f38df1a0e4b916d Mon Sep 17 00:00:00 2001 From: Ki5ter <89602710+Ki5ter@users.noreply.github.com> Date: Mon, 8 Sep 2025 15:59:37 +0800 Subject: [PATCH] =?UTF-8?q?Delete=20C#=E6=A0=B8=E5=BF=83/Lesson12=5F?= =?UTF-8?q?=E7=BB=A7=E6=89=BF-=E7=BB=A7=E6=89=BF=E7=9A=84=E5=9F=BA?= =?UTF-8?q?=E6=9C=AC=E6=A6=82=E5=BF=B5=E7=BB=83=E4=B9=A0=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to reset the gits --- .../Lesson12_继承-继承的基本概念练习.csproj | 11 ------ .../Lesson12_继承-继承的基本概念练习/Program.cs | 34 ------------------- 2 files changed, 45 deletions(-) delete mode 100644 C#核心/Lesson12_继承-继承的基本概念练习/Lesson12_继承-继承的基本概念练习.csproj delete mode 100644 C#核心/Lesson12_继承-继承的基本概念练习/Program.cs diff --git a/C#核心/Lesson12_继承-继承的基本概念练习/Lesson12_继承-继承的基本概念练习.csproj b/C#核心/Lesson12_继承-继承的基本概念练习/Lesson12_继承-继承的基本概念练习.csproj deleted file mode 100644 index 8c374af..0000000 --- a/C#核心/Lesson12_继承-继承的基本概念练习/Lesson12_继承-继承的基本概念练习.csproj +++ /dev/null @@ -1,11 +0,0 @@ - - - - Exe - net8.0 - Lesson12_继承_继承的基本概念练习 - enable - enable - - - diff --git a/C#核心/Lesson12_继承-继承的基本概念练习/Program.cs b/C#核心/Lesson12_继承-继承的基本概念练习/Program.cs deleted file mode 100644 index d72b5f5..0000000 --- a/C#核心/Lesson12_继承-继承的基本概念练习/Program.cs +++ /dev/null @@ -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(); - - } - } -}