# Static variable

**URL:** <https://forum.kirupa.com/t/static-variable/244655>\
**Category:** Uncategorized\
**Created:** [November 20, 2007, 5:00pm UTC](https://forum.kirupa.com/t/static-variable/244655 "2007-11-20T17:00:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qpixo](https://avatars.discourse-cdn.com/v4/letter/q/c4cdca/32.png) [@qpixo](https://forum.kirupa.com/u/qpixo)\
**Post date:** [November 20, 2007, 5:00pm UTC](https://forum.kirupa.com/t/static-variable/244655/1 "2007-11-20T17:00:17Z")

</div>

I got 2 classes one it’s a superclass and contains a static variable. The other it’s a subclass  
(this is just an experimentation…)

While compiled, I got a msg error in subclass saying: the class or interface OOtest could NOT be loaded. I can’t calling a static variable of the mother class.

ex:  
class OOSubtest extends OOtest {

```
public function OOSubtest() {
    trace("test: " +OOtest.test);
}

```

}

class OOtest {  
public static var test = “Aquarium”;  
}
