Method call to another class
I've come up with a null pointer error with this code.... :s
I have to classes Class1 and Class2
I wants Class1 to call a method from Class2.
In Class2 I have a print method. I wants Class1 to call this method.
I have
public Class Class1
{
private Class2 class2;
public Class1()
privatevoid printClass2Method()
{
class2.printMethod()
}
}
I hope thats clear enough...?
[NB: This is not my actual code, just a substitued example]

