# Assigning default values for Class properties

**URL:** <https://forum.kirupa.com/t/assigning-default-values-for-class-properties/246094>\
**Category:** flash\
**Created:** [December 7, 2007, 12:12am UTC](https://forum.kirupa.com/t/assigning-default-values-for-class-properties/246094 "2007-12-07T00:12:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bela0044](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@bela0044](https://forum.kirupa.com/u/bela0044)\
**Post date:** [December 7, 2007, 12:12am UTC](https://forum.kirupa.com/t/assigning-default-values-for-class-properties/246094/1 "2007-12-07T00:12:37Z")

</div>

I am wondering about assigning default values for class properties. Is it as symbol as declaring the property and assigning a value:

public var my\_property:type = value;

or is it better to declare a private property with the defualt value and then a public property with set to the default value:

private var defaultMy\_property:type = value;  
public var my\_property:type = defaultMy\_property;

Any thoughts would be great and thanks in advance.
