# The very basics of OOP

**URL:** <https://forum.kirupa.com/t/the-very-basics-of-oop/241132>\
**Category:** Uncategorized\
**Created:** [October 10, 2007, 11:47am UTC](https://forum.kirupa.com/t/the-very-basics-of-oop/241132 "2007-10-10T11:47:45Z")\
**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 10, 2007, 11:47am UTC](https://forum.kirupa.com/t/the-very-basics-of-oop/241132/1 "2007-10-10T11:47:45Z")

</div>

Hi guys,  
Now that I’m starting to do everything the object-oriented way, I basically need some help (I’m a massive beginner at all this class design stuff!)

Ok, so when I create a variable in a class, what is the BEST way to use that data in another class? Surely just extending the class all the time can’t be good. Should I be generating all content in just ONE class and then doing…

siteData = new siteData();

In every class that needs to access it?  
Also, can someone please explain delegation and the delegate class a bit more to me please!??

Thanks,  
Dave
