☑Kizspy.me
-color:String
-melting:int
+Wax()
Wax
Where:
.
+Wax(color:String, melting:int)
+getColor():String
+getMelting():int
+setMelting(melting:int):void
Wax() default constructor.
Wax(color:String, melting:int) constructor, which
sets values to color and melting.
getColor():String
returns a string s, which is
obtained by replacing the first character of the color
string with the melting.
getMelting():int-return melting.
.setMelting(melting:int):void update melting-new
The program output might look something like:
melting * 3.
Do not format the result.
Enter color: green
Enter melting: 11
Enter color: green
Enter melting: 11
1. Test getColor()
2. Test setMelting()
Enter TC (1 or 2): 1
OUTPUT:
11reen
1. Test getColor()
2. Test setMelting()
Enter TC (1 or 2): 2
Enter new melting: 22
OUTPUT:
Zoom
+ 100%
Close