declaring a class

This is a discussion on declaring a class within the C++ Programming forums, part of the General Programming Boards category; Hello,
I know this may sound a little bit "newbie-ish" but please bear with me. I've just started out to ...

declaring a class

Hello,

I know this may sound a little bit "newbie-ish" but please bear with me. I've just started out to learn C++, and I have run into a road block trying to declare my own class. I keep getting errors when i go to compile my program. When i am defining the class, and what methods it will use, it won't let me then define those class methods later on......uhh, let me try a little example to explain.

No I know that it doesn't work without it, but it seems sort of strange that you'd have to do that. Does it have to do with the class's objects, and you need a ; for that? I'm curious, anyone really smart wanna step in?