global class object

Hello!

I have created a class "Car" and created a Car named brum
Can i in some way make brum global so other classes (then the one i created brum in) can use brum?
What?

You've got an instance of the Car class named 'brum', and you want to make it so that...

...'brum' can be made to other classes?
...'brum' can be used as a template for other classes?
...'brum' can be accessed via the class methods of another class?

You'll have to clarify.
Thanx! Sorry I'm a bit diffuse...
the third alternative is the one I want to understand ...'brum' can be accessed via the class methods of another class?

I have created brum in the main class. Then i have another class "Camera" that shall film the car wherever its going. In order to do so, my camera class must be able to get the cars position. In other words it needs to get access to brum.

Is it clearer now? =)
Topic archived. No new replies allowed.