No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
- Interests
- Learning
7 Posted Topics
Re: 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.. | |
Re: Hi.. may I ask, what have you done so far? | |
Re: 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; … | |
Re: What do you mean by graphics? Is it GUI (Graphical User Interface)? | |
Re: Try adding cin.get() before return 0.. | |
Re: 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 … | |
Re: I agree with James. It just catches what you set it to catch. Runtime errors should be handled separately.. |
The End.