This commit is contained in:
2026-10-14 09:13:20 +03:00
parent 4a32bb5ef2
commit 680ddbaf26
5 changed files with 63 additions and 53 deletions
+16
View File
@@ -0,0 +1,16 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lab-07", "lab-07\lab-07.csproj", "{464362DE-7763-4A7F-899C-FFF1F309693C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{464362DE-7763-4A7F-899C-FFF1F309693C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{464362DE-7763-4A7F-899C-FFF1F309693C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{464362DE-7763-4A7F-899C-FFF1F309693C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{464362DE-7763-4A7F-899C-FFF1F309693C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
+31
View File
@@ -0,0 +1,31 @@
class Pokemon
{
protected string name;
protected int level;
protected int hp;
public string Name
{
get { return name; }
set { name = value; }
}
public int Level
{
get { return level; }
set { level = value; }
}
public int Hp
{
get { return hp; }
set { hp = value; }
}
public virtual void Attack()
{
Console.WriteLine("Покемон атакует");
}
public void ShowInfo(string Name)
}
+11
View File
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>lab_07</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>