For Java, I am having a problem.
I have given code (we'll call it Given.class), and I have to write another class that utilizes private variables within Given.class.
Given.class has 3 private variables..
My code defines a new class type which is made up of an array of type Given.
I edited the given code, changing the private variables to public variables and my code works fine... but I am not allowed to do this for the assignment. Can anyone give me some help? I'm not really understanding what I need to do.
2007-03-16
16:20:01
·
2 answers
·
asked by
Sean06
2
in
Computers & Internet
➔ Programming & Design
Doing so is apparently the object of my assignment though.
I get error "building has private access in Classroom" for my error.
where Classroom = Given.class as mentioned earlier.
Is there seriously no way to do this?
2007-03-16
16:32:14 ·
update #1
The "Given.class" has many methods with various parameters. Using these, I am pretty sure I can do what is required for the assignment, but I am not sure how I would call on them in this manner.
2007-03-16
16:35:53 ·
update #2