Processing Forum
I found how to do it in java, with this code:
class Parent {
public:
virtual int doSomething() {}
}
class Child1 : public Parent {
}
class Child2 : public Parent {
public:
virtual int doSomething();
}
but it doesn't seem to work in processing. The 'public' command and the colon come up as unexpected tokens so I assume this is something that only works in Java. I've been searching the internet for 2hrs and haven't been able to work it out in processing. Can some one please help me out?