How is this dog inheriting a bark?
Yfrog Image : yfrog.com/9fscreenhunter01jul041353g
no real problem here, but something i was suprised to find out was that somehow the dogs in the array could inherit the bark from dog1 even though only "dog" was referenced....
so dose this mean that if i write a bike class and then refrence it as redBike
to give it some color and gainSpeed
then i write a blueBike object and give it a a length of 3
then i try to code blueBike.gainSpeed
it should work? even though no where in "bike" or blueBike" is there any declaring of gainSpeed?