# Limit access to properties based on type?

**URL:** <https://forum.kirupa.com/t/limit-access-to-properties-based-on-type/301223>\
**Category:** flash\
**Created:** [December 5, 2009, 12:29pm UTC](https://forum.kirupa.com/t/limit-access-to-properties-based-on-type/301223 "2009-12-05T12:29:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dandylion13](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dandylion13](https://forum.kirupa.com/u/dandylion13)\
**Post date:** [December 5, 2009, 12:29pm UTC](https://forum.kirupa.com/t/limit-access-to-properties-based-on-type/301223/1 "2009-12-05T12:29:57Z")

</div>

Hello 🙂

I have a question for any OOP experts our there:

Is it possible to limit access to an object’s property values based on the type of object requesting it?

For example:

```auto

public function get someValue():Type
{
  if(the object requesting this information is the right type)
  {
    return _value;
  }
  else
  {
    trace("Sorry, you can't access this property")
  }
}

```
