Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Objects (Retired) Meet Objects Creating Classes

GoKart..

Can someone please explain this to me? I asked the same question and thought the person had the answer to my problems, but it didn´t work. I am lost and don´t remember hearing about this in the video (or maybe I got distracted, I don´t know hehe).

GoKart.java
public class GoKart {
  public static void main(String[] args) {
    public Object GoKart;
  } 
}

1 Answer

Hi Joseph,

You've pretty much done this yourself. The first task is to define a new class. You know nothing else at this stage, so just declare the skeleton:

public class GoKart{

}

Then you're on to the next part of the challenge. That wants you to create a member variable and assign a value to it. You should be fine with that ...

Steve.