Ricochet_Master
JCHJava Community | Help. Code. Learn.
•Created by Ricochet_Master on 10/20/2024 in #java-help
Enums, mutable fields
One of the quickest and cleanest explanations I have had
11 replies
JCHJava Community | Help. Code. Learn.
•Created by Ricochet_Master on 10/20/2024 in #java-help
Enums, mutable fields
Thanks a lot
11 replies
JCHJava Community | Help. Code. Learn.
•Created by Ricochet_Master on 10/20/2024 in #java-help
Enums, mutable fields
Oh, got it
11 replies
JCHJava Community | Help. Code. Learn.
•Created by Ricochet_Master on 10/20/2024 in #java-help
Enums, mutable fields
OUTPUT:
Engine: V8
Cylinders: 8
Load Capacity: 4000.0
V8 engine is starting.
V8 engine is already on.
V8 engine is stopping.
V8 engine is already off.
The field engineState is mutable, even though it is in an enum.
Though this seems useful, is this an intended feature?, is it good practice?
11 replies
JCHJava Community | Help. Code. Learn.
•Created by Ricochet_Master on 9/26/2024 in #java-help
What do the modifiers of classes do?
Thank you so much
10 replies