sitestree.com
Accesses instance variables in a Ship object.
Test1.java Accesses instance variables in a Ship object. ******************************************************** // Create a class with five instance variables (fields): // x, y, speed, direction,…