Hi Guys,
Encountered this question, and I think something might be wrong:
https://imgur.com/a/fFqlaAX
The correct answers are:
Make the side field private and remove the area field.
Change getArea method to:
public double getArea(){ return side*side; }
The thing is if area is removed, in TestClass, how is possible to access it via sq.area = ....
Am I missing something?
enthuware.ocajp.i.v8.2.876 issue?
Moderator: admin
-
- Posts: 7
- Joined: Wed Feb 01, 2023 9:00 am
- Contact:
-
- Site Admin
- Posts: 10046
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: enthuware.ocajp.i.v8.2.876 issue?
Please see this thread: https://enthuware.com/forum/viewtopic.php?f=2&t=3997
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: Bing [Bot] and 53 guests