删除所有Lesson12相关内容准备重新提交
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user