Ask Question
20 March, 13:34

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.

+2
Answers (1)
  1. 20 March, 15:18
    0
    public class Boat {

    String name;

    boolean sailPosition;

    float speed;

    }
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers