T
Tom Machado
Hello,
I am working on a project and have become a little confused on how to
call methods from another class. Before I explain, here is an example:
class 0
{
main()
{
class 1 = new class1();
}
}
class 1
{
class1()
{
/*
now I want to call a method from class 0 (i.e.
class0.getVariable()) do I need to make a new instance or what since
this class already being called by class 0?
*/
}
}
Any idea? Also, class0 is a windows form and class1 is not, so calling
it again doesnt really make sense to me...
Thank you!
Tom
I am working on a project and have become a little confused on how to
call methods from another class. Before I explain, here is an example:
class 0
{
main()
{
class 1 = new class1();
}
}
class 1
{
class1()
{
/*
now I want to call a method from class 0 (i.e.
class0.getVariable()) do I need to make a new instance or what since
this class already being called by class 0?
*/
}
}
Any idea? Also, class0 is a windows form and class1 is not, so calling
it again doesnt really make sense to me...
Thank you!
Tom