package workshop2.grade2.model;

public class Boat {
	

	public Object getType() {
		// TODO Auto-generated method stub
		return null;
	}

	public void setType(Object type) {
		// TODO Auto-generated method stub
		
	}

	public Object getLength() {
		// TODO Auto-generated method stub
		return null;
	}

	public void setLength(Object length) {
		// TODO Auto-generated method stub
		
	}
}
@@ -49,17 +49,45 @@
 Boat %7B%0D%0A
-%09
+%0D%0A%09private double boatLength;
 %0D%0A%0D%0A%09pub
@@ -94,239 +94,256 @@
 lic 
-Object ge
+enum Boa
 tType
-()
  %7B%0D%0A%09%09
-// TODO Auto-generated method stub%0D%0A%09%09return null;%0D%0A%09%7D%0D%0A%0D%0A%09public void setType(Object type) %7B%0D%0A%09%09// TODO Auto-generated method stub%0D%0A%09%09%0D%0A%09%7D%0D%0A%0D%0A%09public Object getLength() %7B%0D%0A%09%09// TODO Auto-generated method stub
+Sailboat, Motorsailer, Canoe, Other%0D%0A%09%7D%0D%0A%0D%0A%09private BoatType type;%0D%0A%0D%0A%09public Boat(double length, BoatType type) %7B%0D%0A%09%09setBoatLength(length);%0D%0A%09%09this.type = type;%0D%0A%0D%0A%09%7D%0D%0A%0D%0A%09public Boat() %7B%0D%0A%0D%0A%09%7D%0D%0A%0D%0A%09public double getBoatLength() %7B
 %0D%0A%09%09
@@ -353,12 +353,18 @@
 urn 
-null
+boatLength
 ;%0D%0A%09
@@ -388,76 +388,303 @@
  set
+Boat
 Length(
-Object length
+double boatLength) %7B%0D%0A%09%09if (boatLength %3C= 0.0
 ) %7B%0D%0A%09%09
+%09
-// TODO Auto-gen
+throw new ArithmeticException(%22You have ins
 er
-a
 ted 
-method stub%0D%0A%09%09
+an invalid value%22);%0D%0A%09%09%7D%0D%0A%09%09this.boatLength = boatLength;%0D%0A%0D%0A%09%7D%0D%0A%0D%0A%09public BoatType getType() %7B%0D%0A%09%09return type;%0D%0A%09%7D%0D%0A%0D%0A%09public void setType(BoatType type) %7B%0D%0A%09%09this.type = type;
 %0D%0A%09%7D%0D%0A
+%0D%0A
 %7D

complete boat class