# Referencing

**URL:** <https://forum.kirupa.com/t/referencing/317926>\
**Category:** Uncategorized\
**Created:** [January 6, 2011, 6:21am UTC](https://forum.kirupa.com/t/referencing/317926 "2011-01-06T06:21:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rimacy](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Post date:** [January 6, 2011, 6:21am UTC](https://forum.kirupa.com/t/referencing/317926/1 "2011-01-06T06:21:38Z")

</div>

in this code:

```auto
public class document()
{
     public function document()
     {
        _model = new Model();
       _controller=new controller(_model);
       _view= new view(_model_controller)
     }
}

```

what am i doing when i give one class a reference to another?
