question about inheritance



Now that I am understanding the concept of inheritance better, I decided to test myself. I won't show all the code here, but basically I have the following class structure


Species:
Mammal
Feline
Tiger
Housecat
Lion
Canine
domesticDog
wolf
fox
Human
Reptile

if class Housecat extends Feline
and if class Feline extends Species
can an object of type Housecat use the methods defined in Species even though it doesn't inherite from Species directly? My understanding would be that it can because, if I understand correctly, all subclasses inherite from the super class that it extends, which also makes available the methods and instance variables (that are public) from the entire hierachy up.

Basically what I'm asking is,
if Species.name is an instance variable public in Species,
does fox.name refere to anything or is it an error?
.



Relevant Pages

  • Re: Is there a god?
    ... lack of deeper understanding, en route to a better, more profound position ... |> demands and kin selection priorities, leading to a very different morality ... | comes from if game theory isn't available. ... It works with other species, ...
    (uk.religion.christian)
  • Re: To John Drayton, re MC
    ... >>an understanding of quite fundamental evolutionary concepts. ... >>> species would be proportional to the time since the species supposedly ... > evolutionists were saying that the carp and the horse and the rabbit, ... > etc., all had the same most recent common ancestor, ...
    (talk.origins)
  • Zoe, Dover, and Pandas
    ... understood how it related to species on an evolutioanry tree. ... an understanding of quite fundamental evolutionary concepts. ...
    (talk.origins)
  • Re: Bare rooted plants from America
    ... But all the nurserys I have contacted refuse to supply, ... It was my understanding that its not only the soil borne pests etc, ... Apparently a lot can depend on species. ... elm because of elm bark beetle are banned ...
    (uk.rec.gardening)