Ships Study the UML diagram carefully. The green spots signify public. The red squares signify private. Superclass
Question:
class chap11new.CruiseShip Ship name: Magic, year launched: 1998, GT 83338 2700 passenger capacity, operating in the Caribbean A holiday vessel for vacationers
class chap11new.CruiseShip Ship name: Titanic, year launched: 1912, GT 46328 2435 passenger capacity, operating in the Atlantic Ocean A holiday vessel for vacationers
class chap11new.CargoShip Ship name: Algeciras, year launched: 2020, GT 228283 Capacity of containers is 391 Hauling cargo across the seas
class chap11new.CargoShip Ship name: Seawise Giant, year launched: 1979, GT 260941 Capacity of crude oil is 564763 Hauling cargo across the seas
class chap11new.WarShip Ship name: USS Nimitz, year launched: 1972, GT 97000 Type: super carrier, operated by United States Navy A ship for defense or possibly attack
class chap11new.WarShip Ship name: USS Zumwalt DDG 1000, year launched: 2013, GT 15656 Type: destroyer, operated by United States Navy A ship for defense or possibly attack
Fleet size is now 7 Fleet sorted by tonnage after adding Symphony of the Seas
Ship name: USS Zumwalt DDG 1000, year launched: 2013, GT 15656 Type: destroyer, operated by United States Navy
Ship name: Titanic, year launched: 1912, GT 46328 2435 passenger capacity, operating in the Atlantic Ocean
Ship name: Magic, year launched: 1998, GT 83338 2700 passenger capacity, operating in the Caribbean
Ship name: USS Nimitz, year launched: 1972, GT 97000 Type: super carrier, operated by United States Navy
Ship name: Symphony of the Seas, year launched: 2018, GT 228081 6680 passenger capacity, operating in the Atlantic Ocean
Ship name: Algeciras, year launched: 2020, GT 228283 Capacity of containers is 391
> Ship chap 11new - name: String - year: int - tons: int S numShips: int Ship(String, int,int) getName(): String">