The document defines an abstract class 'AlienShip' in Java, which includes properties for shield strength and ship name, along with methods for firing weapons, detecting hits, and managing the number of ships. It tracks the total number of ships and handles the destruction of a ship when its shield strength reaches zero. The class utilizes logging for various actions within its methods.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
4 views1 page
Project 2 AlienShip
The document defines an abstract class 'AlienShip' in Java, which includes properties for shield strength and ship name, along with methods for firing weapons, detecting hits, and managing the number of ships. It tracks the total number of ships and handles the destruction of a ship when its shield strength reaches zero. The class utilizes logging for various actions within its methods.