# Variables

**URL:** <https://forum.kirupa.com/t/variables/241923>\
**Category:** Uncategorized\
**Created:** [October 19, 2007, 1:41pm UTC](https://forum.kirupa.com/t/variables/241923 "2007-10-19T13:41:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trundrumbalind](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trundrumbalind/32/696_2.png) [@trundrumbalind](https://forum.kirupa.com/u/trundrumbalind)\
**Post date:** [October 19, 2007, 1:41pm UTC](https://forum.kirupa.com/t/variables/241923/1 "2007-10-19T13:41:43Z")

</div>

Hi there,  
Ok this is got to be SUCH a basic question but I’m new with OOP. Basically, if I define a variable in a class, how do I access that variable in a different class? Surely I don’t have to make an instance of that class in each class that wants to access the variable. Sorry but I’m a bit of a novice with design patterns ☹
