Ask Question
6 December, 15:23

Write a Java application that defines a class Boat. The Boat class should provide three fields/attributes: 1) name is a variable of type String, 2) sail position is a variable of type boolean, 3) speed is a variable of type float.

+3
Answers (1)
  1. 6 December, 18:48
    0
    public class Boat {

    String name;

    boolean sailPosition;

    float speed;

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a Java application that defines a class Boat. The Boat class should provide three fields/attributes: 1) name is a variable of type ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers