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
JohnPaul Avila II
318 Pointshow to Create a new blueprint for Go Karts. Start by declaring a class named GoKart
pls need help
2 Answers
Joseph Wasden
20,407 PointsIn the future, it is helpful to have a link to the code challenge you are attempting. Try using the "Get Help" button from inside the code challenge next time to help others reply with helpful answers.
As it stands, I'm assuming this is the challenge you are working on. https://teamtreehouse.com/library/java-objects-2/meet-objects/create-a-class-and-field
Check the video starting at time 3:55. Craig provides an example on the bare bones of what a class looks like in code.
To create a class, we need to use the class keyword, then follow that we the name of the class. After that, we need to declare the class body, or in other words the place where all the code that describes the class goes. (Note that the body can be empty for now, and that is still considered a class.)
See the code below
class MyClass {
}
Now how can you imitate my code to complete the challenge?
kelvino
Courses Plus Student 10,694 Pointsplease, I need help regarding this assignment ...
JohnPaul Avila II
318 PointsJohnPaul Avila II
318 Pointswatched vid but didnt quite understand and the quiz didn't get complete because didn't understand study pls help I'm a 7th grader and I really need help