Create and show examples of inheritance with 3 seperate classes
- Vertebrate which has a method
has_spine?
which returns true - Reptilia which extends Vertebrate has a method
cold_blooded?
which returns true - Aves which can fly but is not cold blooded.
Each of these classes should be able to be given and find out its name
class Vertebrate
def initialize
@has_spine == true
end
end