#Needing help fixing these few error messages

6 messages · Page 1 of 1 (latest)

fringe sinew
#

Hey all, I'm new to Java and I'm having trouble running my program. I keep getting errors that're like:
Error: EventNumber cannot be resolved to a variable
and
The method setNumberOfGuests(int) is undefined for the type Event
and lastly
CarlysEventPriceWithMethod cannot be resolved

Any help would be appreciated with figuring out these errors!

Both codes are provided via photos.

digital inletBOT
#

This post has been reserved for your question.

Hey @fringe sinew! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

shut torrent
#

EventNumber cannot be resolved to a variable
this means that there's no variable with that name. you want this.EventNumber there, or change the name of the EventNum field.

#

The method setNumberOfGuests(int) is undefined for the type Event
you haven't implemented the setter

#

CarlysEventPriceWithMethod cannot be resolved
that's just not a thing in your code. it doesn't even seem to be doing anything