Ask 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 String, 2) sail position is a variable of type boolean, 3) speed is a variable of type float.

+1
Answers (1)
  1. 9 November, 15:28
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers