I have been searching around the internet about Creating an instance of a object in one class and using that same instance in a different class. I have not found any posts though that apply to what I want to do. Here is an example of what I want to do.
public class ThisClass{
public ThisClass{
//This is the object I want to create
}
}
public class FirstClass{
public ThisClass thisclass = new ThisClass();
}
public class SecondClass{
//Now in SecondClass I want to be able to access the instance of ThisClass
//I created in FirstClass
}
Any ideas on what to do here that wont be too complex and make the code a nightmare to look at?