# OOP etiquette

**URL:** <https://forum.kirupa.com/t/oop-etiquette/234067>\
**Category:** flash\
**Created:** [July 30, 2007, 10:16am UTC](https://forum.kirupa.com/t/oop-etiquette/234067 "2007-07-30T10:16:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tezzutezzu](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@tezzutezzu](https://forum.kirupa.com/u/tezzutezzu)\
**Post date:** [July 30, 2007, 10:16am UTC](https://forum.kirupa.com/t/oop-etiquette/234067/1 "2007-07-30T10:16:00Z")

</div>

trace(new Greeting ()); // Hello people!

I had just been told that storing lots of public properties in an object is not a very good OOP approach. Suggestions are to use mainly private properties if these ones are just accessed by the object itself, and then defining them using the constructor and/or other public functions.  
I use to have some public properties and then change them when in need and use private properties just for private functions.

I don’t know if I’m “wrong” but for me the second approach is way comfortable than the first one.

What do you think?
