private variable is not inherited : Access Control Modifiers : Class Flash / Flex / ActionScript examples


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

 

private variable is not inherited


 

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

            trace(finish)//Compiler error! We don't have a finish.
        }
    }

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Class
» Access Control Modifiers