# Proper use of setters/getters?

**URL:** <https://forum.kirupa.com/t/proper-use-of-setters-getters/232695>\
**Category:** Uncategorized\
**Created:** [July 17, 2007, 1:18am UTC](https://forum.kirupa.com/t/proper-use-of-setters-getters/232695 "2007-07-17T01:18:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slopps](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@slopps](https://forum.kirupa.com/u/slopps)\
**Post date:** [July 17, 2007, 1:18am UTC](https://forum.kirupa.com/t/proper-use-of-setters-getters/232695/1 "2007-07-17T01:18:05Z")

</div>

Hey all,  
Is it improper to put functionality other than setting or getting data in your getter/setter functions? I just wrote my Connector class ( [http://www.kirupa.com/forum/showthread.php?t=268245)](http://www.kirupa.com/forum/showthread.php?t=268245) and for example, in my linethickness setter, I have:

```auto
public function set lineThickness(value:uint):void {
            _lineThickness = value;
            drawTriangle();
            drawConnector();
}

```

Is calling my draw methods in the setter improper? If so, what’s the alternative?
