Inherit protected variable : Access Control Modifiers : Class Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Class » Access Control Modifiers »

 

Inherit protected variable


 
    class Toaster
    {
        protected var finish:String = "Reflective Silver";
    }
    class HeatedResistorToaster extends Toaster
    {
        public function HeatedResistorToaster()
        {
            trace(finish)//Reflective Silver
        }
    }

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Class
» Access Control Modifiers