# Oop question

**URL:** <https://forum.kirupa.com/t/oop-question/315293>\
**Category:** Uncategorized\
**Created:** [October 22, 2010, 6:40am UTC](https://forum.kirupa.com/t/oop-question/315293 "2010-10-22T06:40:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![c80609a](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@c80609a](https://forum.kirupa.com/u/c80609a)\
**Post date:** [October 22, 2010, 6:40am UTC](https://forum.kirupa.com/t/oop-question/315293/1 "2010-10-22T06:40:43Z")

</div>

Hello everybody! 🙂

I have \*\*Container \*\*class. Container defines two private objects: Shop and Bag.  
\*\*Shop \*\*class defines \_turn() method (next and prev buttons handler).  
\*\*Bag \*\*class contains Pocket object that defines onShopTurnReaction() method.

```auto
class Container {	
	private var _shop:Shop;
	private var _bag:Bag;	
}

class Shop {
	private function _turn():Void { }	
}

class Bag {	
	private var _pocket:Pocket;	
}

class Pocket {	
	public function onShopTurnReaction():Void { }	
}

```

Now, the **question** is: how can I notify Pocket instance of prev / next buttons clicks?  
**P.S.** I’m asking this because I need to define more OOP correct way for this little task. I will be glad for any suggestions, thanks.
