Invoking another class's method

Invoking another class's method
0.0 0


class A has a method test()
how i will invoke the method test() from class B.

class A extends CCColorLayer and the class B extends Activity.
please help. im stuck! :expressionless:


As far as I know, you just need to create an instance of that class B in your class A, and then call its methods:

AnotherScene *myOtherScene = AnotherScene ::node();


nope….its not working