# Parameters to the class

**URL:** <https://forum.kirupa.com/t/parameters-to-the-class/296450>\
**Category:** Uncategorized\
**Created:** [September 15, 2009, 6:10am UTC](https://forum.kirupa.com/t/parameters-to-the-class/296450 "2009-09-15T06:10:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lope](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@lope](https://forum.kirupa.com/u/lope)\
**Post date:** [September 15, 2009, 6:10am UTC](https://forum.kirupa.com/t/parameters-to-the-class/296450/1 "2009-09-15T06:10:59Z")

</div>

when you pass a parameters to your class when do you actually need to have class instance variables to hold a references to those parameters rather than just use those parameters directly in your class?

I found myself always making a private variable for each parameter but I wonder is this maybe too much…
