Prototyping classes?

Hello :)

Was wondering if you can prototype classes aswell.
tried (based on function protoypes):
1
2
3
-class MyClass;
-class MyClass{};
-class MyClass();


no succes so far ^^

Thanks on advance :)
You can forward declare classes:

 
class MyClass;


Note that this allows you to use the class name in pointers, references, and function prototypes. However you cannot instantiate the class with just a forward declaration. In order to instantiate the class, or to dereference a pointer, the class must be fully defined.
Topic archived. No new replies allowed.