# Extending a class 2 times :D

**URL:** <https://forum.kirupa.com/t/extending-a-class-2-times-d/300748>\
**Category:** Uncategorized\
**Created:** [November 26, 2009, 3:49pm UTC](https://forum.kirupa.com/t/extending-a-class-2-times-d/300748 "2009-11-26T15:49:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lope](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@lope](https://forum.kirupa.com/u/lope)\
**Post date:** [November 26, 2009, 3:49pm UTC](https://forum.kirupa.com/t/extending-a-class-2-times-d/300748/1 "2009-11-26T15:49:21Z")

</div>

i have class A, then class B which entends class A, then class C which entends class B.  
now in class A there are couple of empty methods currently defined as protected.  
in class B these methods are also empty //i dont know how to make this exactly, they should obvioulsy be here as well because… -\>  
then in class C i want to override these methods and actually do something in them.

so how do i stretch these empty methods from class A to class C?  
don tell me this has to go like this? 😃

```auto
class A:
protected function rollOverHandler(e:MouseEvent):void {}
class B:
override protected function rollOverHandler(e:MouseEvent):void {
     super.rollOverHandler();//do i need this because nothing is happening above?
}
class C:
override protected function rollOverHandler(e:MouseEvent):void {
     do something here...
}

```
