From 5abced23d90be6118aac15af0cd2569b077e325e Mon Sep 17 00:00:00 2001 From: Kister Hakusan <2753888203@qq.com> Date: Mon, 8 Sep 2025 15:47:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=89=80=E6=9C=89Lesson12?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E5=86=85=E5=AE=B9=E5=87=86=E5=A4=87=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- C#核心/C#核心.sln | 6 ---- .../Lesson12_继承-继承的基本概念练习.csproj | 10 ------ .../Lesson12_继承_继承的基本概念练习/Program.cs | 34 ------------------- 3 files changed, 50 deletions(-) delete mode 100644 C#核心/Lesson12_继承_继承的基本概念练习/Lesson12_继承-继承的基本概念练习.csproj delete mode 100644 C#核心/Lesson12_继承_继承的基本概念练习/Program.cs diff --git a/C#核心/C#核心.sln b/C#核心/C#核心.sln index e14b28e..9093761 100644 --- a/C#核心/C#核心.sln +++ b/C#核心/C#核心.sln @@ -9,8 +9,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lesson10_封装-运算符 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lesson10_封装-运算符重载", "Lesson10_封装-运算符重载联系\Lesson10_封装-运算符重载.csproj", "{DEE2177C-8552-488D-A36A-A47B8547580D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lesson12_继承-继承的基本概念练习", "Lesson12_继承_继承的基本概念练习\Lesson12_继承-继承的基本概念练习.csproj", "{DD7B30CE-773B-4752-9703-D0D5E6E4F376}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lesson11_封装-内部类与外部类", "Lesson11_封装-内部类与外部类\Lesson11_封装-内部类与外部类.csproj", "{97B96262-E4CC-4A7B-8545-D58984CCBD70}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lesson13_继承-李氏替换原则", "Lesson13_继承-李氏替换原则\Lesson13_继承-李氏替换原则.csproj", "{06C184C2-C60B-4CFC-B3B8-7A8E0754D725}" @@ -33,10 +31,6 @@ Global {DEE2177C-8552-488D-A36A-A47B8547580D}.Debug|Any CPU.Build.0 = Debug|Any CPU {DEE2177C-8552-488D-A36A-A47B8547580D}.Release|Any CPU.ActiveCfg = Release|Any CPU {DEE2177C-8552-488D-A36A-A47B8547580D}.Release|Any CPU.Build.0 = Release|Any CPU - {DD7B30CE-773B-4752-9703-D0D5E6E4F376}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DD7B30CE-773B-4752-9703-D0D5E6E4F376}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DD7B30CE-773B-4752-9703-D0D5E6E4F376}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DD7B30CE-773B-4752-9703-D0D5E6E4F376}.Release|Any CPU.Build.0 = Release|Any CPU {97B96262-E4CC-4A7B-8545-D58984CCBD70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {97B96262-E4CC-4A7B-8545-D58984CCBD70}.Debug|Any CPU.Build.0 = Debug|Any CPU {97B96262-E4CC-4A7B-8545-D58984CCBD70}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/C#核心/Lesson12_继承_继承的基本概念练习/Lesson12_继承-继承的基本概念练习.csproj b/C#核心/Lesson12_继承_继承的基本概念练习/Lesson12_继承-继承的基本概念练习.csproj deleted file mode 100644 index 2150e37..0000000 --- a/C#核心/Lesson12_继承_继承的基本概念练习/Lesson12_继承-继承的基本概念练习.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - Exe - net8.0 - 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(); - - } - } -}