Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #22.6K
Ranked #4K
~1K People Reached
Interests
Learning
Favorite Forums

7 Posted Topics

Member Avatar for Tanner_1

Hi.. I think the error appears because you don't have a method setYear.. the method that exists in your car class is setYears.. I hope this is helpful..

Member Avatar for JamesCherrill
0
260
Member Avatar for Lutina
Member Avatar for Brandon Hatch

You should create private variables then your setters and getters to set and access those the values of those private variables respectively. To clean it up what James suggested, create another method that do the calculations. Here is a basic example. public class Model{ private double acceleration; private double mass; …

Member Avatar for Brandon Hatch
0
232
Member Avatar for Mahnoor_1
Member Avatar for dilantha.prasanjith.96
0
135
Member Avatar for TheChessDoctor
Member Avatar for Parvathiapril8
Re: Void

Let's put it in an example, I think a simple example of this is the setters. Say you have a global variable String 'name', you would want to set it using setName("Alex"). You then create a method that sets that value public void setName(String str){ name = str; } The …

Member Avatar for JamesCherrill
0
242
Member Avatar for Doogledude123
Member Avatar for jwenting
0
287

The End.