Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Windows Develop CSharp
  • Category : CSharp
  • Tags :
  • Update : 2012-11-26
  • Size : 32kb
  • Downloaded :0次
  • Author :liu****
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
1), defines an abstract class Weapon, the abstract class has two abstract methods attack (), move (): These two methods represent the weapons attacks and moves. (2), defines three classes: Tank, Flighter, WarShip are inherited from the Weapon, respectively, in different ways to achieve Weapon Class abstract methods. (3), write a class Army, on behalf of an army, this class has a property is an array of Weapon w (used to store all of the weapons owned by the armed forces) class provides a constructor in the constructor through the mass a parameter of type int to limit the class can have the maximum number of weapons, and to initialize the array with the size of the w. The class also provides a method addWeapon (Weapon wa), that represent the parameters wa added to the array w of weapons. In this class also defines two methods attackAll () and moveAll (), let w array and move all the weapons to attack. (4), write a main method to test the above procedure.
Packet file list
(Preview for download)
抽象类Weapon
............\_4
............\_4.sln
............\_4.suo
............\..\Army.cs
............\..\bin
............\..\...\Debug
............\..\...\.....\_4.exe
............\..\...\.....\_4.pdb
............\..\...\.....\_4.vshost.exe
............\..\...\.....\_4.vshost.exe.manifest
............\..\ClassDiagram1.cd
............\..\ClassDiagram2.cd
............\..\Flighter.cs
............\..\obj
............\..\...\Debug
............\..\...\.....\Refactor
............\..\...\.....\TempPE
............\..\...\.....\_4.csproj.FileListAbsolute.txt
............\..\...\.....\_4.exe
............\..\...\.....\_4.pdb
............\..\Program.cs
............\..\Properties
............\..\..........\AssemblyInfo.cs
............\..\Tank.cs
............\..\WarShip.cs
............\..\Weapon.cs
............\..\_4.csproj
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.