diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Add.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Add.cs" new file mode 100644 index 0000000000000000000000000000000000000000..3f0f86ef6400252a154fac30bad361d0e6f3ad2f --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Add.cs" @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp11 +{ + class Add:Calculate + { + public Add(int numone ,int numtwo ,string charter) :base( numone ,numtwo ,charter){ } + public override void DisplayResult() { + Console.WriteLine(numone+charter+numtwo+"="+(numone+numtwo)); + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/AddDiff.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/AddDiff.cs" new file mode 100644 index 0000000000000000000000000000000000000000..55d87b8f646d2e1c1d1dbd77ec3c999943de7e15 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/AddDiff.cs" @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp11 +{ + class AddDiff : Calculate + { + public AddDiff(int numone, int numtwo, string charter) : base(numone, numtwo, charter) { } + + public override void DisplayResult() + { + Console.WriteLine(numone + charter + numtwo + "=" + (numone - numtwo)); + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Calculate.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Calculate.cs" new file mode 100644 index 0000000000000000000000000000000000000000..e033455587d1164977141c0a297703847430b4b7 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Calculate.cs" @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp11 +{ + class Calculate + { + protected int numone { get; set; } + protected int numtwo { get; set; } + protected string charter { get; set; } + public Calculate(int numone, int numtwo, string charter) + { + this.numone = numone; + this.numtwo = numtwo; + this.charter = charter; + } + public virtual void DisplayResult() { } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Chengfa.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Chengfa.cs" new file mode 100644 index 0000000000000000000000000000000000000000..ab7f3458823d3744a9666541b92fa75936e0901e --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Chengfa.cs" @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp11 +{ + class Chengfa : Calculate + { + public Chengfa(int numone, int numtwo, string charter) : base(numone, numtwo, charter) { } + + public override void DisplayResult() + { + + Console.WriteLine(numone + charter + numtwo + "=" + (numone * numtwo)); + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Chufa.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Chufa.cs" new file mode 100644 index 0000000000000000000000000000000000000000..4148302879879e1332bac684ed0d8e5aa7f52996 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Chufa.cs" @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp11 +{ + class Chufa : Calculate + { + public Chufa(int numone, int numtwo, string charter) : base(numone, numtwo, charter) { } + public override void DisplayResult() + { + Console.WriteLine(numone + charter + numtwo + "=" + (numone / numtwo)); + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Program.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Program.cs" new file mode 100644 index 0000000000000000000000000000000000000000..f5625d6cfd5f75c101ab832a660b49b41d366a6f --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/Program.cs" @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp11 +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("请选择你要运算的类型:1.+ 2.- 3.x 4./"); + int key = Convert.ToInt32(Console.ReadLine()); + Calculate calculate; + switch (key) + { + case 1: + Console.WriteLine("请输入第一个数:"); + int Numone1 = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine("请输入第二个数:"); + int Numtwo1 = Convert.ToInt32(Console.ReadLine()); + calculate = new Add(Numone1, Numtwo1, "+"); + break; + case 2: + Console.WriteLine("请输入第一个数:"); + int Numone2 = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine("请输入第二个数:"); + int Numtwo2 = Convert.ToInt32(Console.ReadLine()); + calculate = new AddDiff(Numone2, Numtwo2, "-"); + break; + case 3: + Console.WriteLine("请输入第一个数:"); + int Numone3 = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine("请输入第二个数:"); + int Numtwo3 = Convert.ToInt32(Console.ReadLine()); + calculate = new Chengfa(Numone3, Numtwo3, "*"); + break; + case 4: + Console.WriteLine("请输入第一个数:"); + int Numone4 = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine("请输入第二个数:"); + int Numtwo4 = Convert.ToInt32(Console.ReadLine()); + calculate = new Chufa(Numone4, Numtwo4, "/"); + break; + default: + calculate = new Add(0, 0, "+"); + Console.WriteLine("你确实你没选择错???"); + break; + } + PublicCalculate publicCalculate = new PublicCalculate(); + publicCalculate.PublicCalculatetest(calculate); + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/PublicCalculate.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/PublicCalculate.cs" new file mode 100644 index 0000000000000000000000000000000000000000..220ec0121df50516496fb200a2184ad9970ae6d2 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/PublicCalculate.cs" @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp11 +{ + class PublicCalculate + { + public void PublicCalculatetest(Calculate calculate) + { + + calculate.DisplayResult(); + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (3)/Circle.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (3)/Circle.cs" new file mode 100644 index 0000000000000000000000000000000000000000..1cc0cfc26c99708af2f643b9593ab53d109e0859 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (3)/Circle.cs" @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp12 +{ + class Circle : Shape + { + public double radius; + public override void GetArea() + { + base.GetArea(); + Console.WriteLine("圆的面积为" + (3.14 * radius * radius)); + } + } +} diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Animal.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Animal.cs" new file mode 100644 index 0000000000000000000000000000000000000000..579be84ea30853d94f56bcad4793a57208483ec7 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Animal.cs" @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp10 +{ + class Animal + { + public int Lag { get; set; } + + + + public void Publicaction() + { + Console.WriteLine("我会走路"); + Console.WriteLine("我会吃饭"); + Console.WriteLine("我会睡觉"); + } + public virtual void Legcount() + { + //Console.WriteLine("我有{0}腿",this.Lag); + } + public virtual void Jiao() + { + //Console.WriteLine("我会叫"); + } + + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/BoridType.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/BoridType.cs" new file mode 100644 index 0000000000000000000000000000000000000000..b061aa965fe3e317fee6b32dc71a19e25f8ec43b --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/BoridType.cs" @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp10 +{ + class BoridType : Animal + { + + + public void Fry() + { + Console.WriteLine("我可以飞"); + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Calculate.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Calculate.cs" new file mode 100644 index 0000000000000000000000000000000000000000..c497c855801628886a298c79576e28b799ac4adb --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Calculate.cs" @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp10 +{ + class Calculate + { + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Cat.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Cat.cs" new file mode 100644 index 0000000000000000000000000000000000000000..2c9f24687b5c2e7478c6e90c73ce8ebd88ed5bf8 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Cat.cs" @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp10 +{ + class Cat : CatType + { + + public void Myaction() + { + Legcount(); + Jiao(); + + } + public override void Legcount() + { + //base.Jiao(); + Console.WriteLine("我有{0}条腿", Lag); + + } + public override void Jiao() + { + //base.Jiao(); + Console.WriteLine("我会喵喵叫!"); + + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/CatType.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/CatType.cs" new file mode 100644 index 0000000000000000000000000000000000000000..fb8df33dadec9c37a33c38cbc3e7df508d4f0289 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/CatType.cs" @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp10 +{ + class CatType : Animal + { + + public void SeeNight() + { + Console.WriteLine("我可以夜视"); + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/ClooseAnimal.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/ClooseAnimal.cs" new file mode 100644 index 0000000000000000000000000000000000000000..83b4ec7c495077cf95f7e9ad4fa7a3e5eacfed78 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/ClooseAnimal.cs" @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp10 +{ + class ClooseAnimal + { + public void ThisAnimal(Animal animal) + { + animal.Publicaction(); + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Eagin.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Eagin.cs" new file mode 100644 index 0000000000000000000000000000000000000000..11e003c7899daad1d1b03a5c7c5cc999a1e7d53d --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Eagin.cs" @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp10 +{ + class Eagin : BoridType + { + + public void Myaction() + { + Legcount(); + Jiao(); + + } + + public override void Legcount() + { + //base.Jiao(); + Console.WriteLine("我有{0}条腿", Lag); + + } + + public override void Jiao() + { + //base.Jiao(); + Console.WriteLine("我会嘎嘎叫!!!"); + + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Program.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Program.cs" new file mode 100644 index 0000000000000000000000000000000000000000..22e6036658c551bf86f6c4b2734ec5e9386fb311 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Program.cs" @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp10 +{ + class Program + { + static void Main(string[] args) + { + //Cat cat = new Cat(); + //cat.SeeNight(); + //cat.Publicaction(); + //cat.Myaction(); + + + + //YanZi yanZi = new YanZi(); + //yanZi.Fry(); + //yanZi.Publicaction(); + //yanZi.Myaction(); + + Console.WriteLine("请选择你要选的动物:1.老虎 2.猫 3.燕子 4.老鹰"); + int key = Convert.ToInt32(Console.ReadLine()); + Animal animal; + switch (key) + { + case 1: + animal = new Tiger(); + animal.Jiao(); + break; + case 2: + animal = new Cat(); + animal.Jiao(); + break; + case 3: + animal = new YanZi(); + animal.Jiao(); + break; + case 4: + animal = new Eagin(); + animal.Jiao(); + break; + default: + animal = new Tiger(); + break; + } + + ClooseAnimal clooseAnimal = new ClooseAnimal(); + clooseAnimal.ThisAnimal(animal); + + } + } + + + +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Shape.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Shape.cs" new file mode 100644 index 0000000000000000000000000000000000000000..52dac1b5cf362c0e935080c501fcb68cb299f9e3 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Shape.cs" @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp12 +{ + class Shape + { + public string color; + public virtual void GetArea() + { + + } + } +} diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Square.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Square.cs" new file mode 100644 index 0000000000000000000000000000000000000000..a820efcb2491beebbc1ae6129a4682efc0f3853f --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Square.cs" @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp12 +{ + class Square : Shape + { + public int sideLen; + public override void GetArea() + { + base.GetArea(); + Console.WriteLine("长方形的面积为" + (sideLen *sideLen)); + } + } +} diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Tiger.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Tiger.cs" new file mode 100644 index 0000000000000000000000000000000000000000..a02f4eab71461cd05763bc57846d7d0e48dbb95c --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Tiger.cs" @@ -0,0 +1,31 @@ +using System; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp10 +{ + class Tiger : CatType + { + + + public void Myaction() + { + Legcount(); + Jiao(); + + } + public override void Legcount() + { + //base.Jiao(); + Console.WriteLine ("我有{0}条腿", Lag); + + } + + public override void Jiao() + { + //base.Jiao(); + Console.WriteLine("我会咆哮!!!"); + + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/YanZi.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/YanZi.cs" new file mode 100644 index 0000000000000000000000000000000000000000..edfb90d6451f7e079468727134dc8c9dd9e8bfbf --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\345\272\206\346\211\215/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/YanZi.cs" @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp10 +{ + class YanZi : BoridType + { + + + public void Myaction() + { + Legcount(); + Jiao(); + + } + public override void Legcount() + { + //base.Jiao(); + Console.WriteLine("我有{0}条腿", Lag); + + } + + public override void Jiao() + { + //base.Jiao(); + Console.WriteLine("我会叽叽叫!!!"); + + } + } +} \ No newline at end of file