hclAmcat Company Programming Program

Mary is making a database of animals in a zoo and their properties. Possible animals are Dog, lion and zebra, each one has as attribute isHerbivorous, color and isNocturnal.She uses the object oriented programming paradigm for this.How will she conceptualize the system?

Option A : class Animals; object: dog lion and zebra; data members : isHerbivorous, color and isNocturnal.
Option B: class: Animals; object: isHerbivorous, color and isNocturnal
Option C: classes: dog,lion and zebra; object: Animals; data members: isHerbivorous , color and isNocturnal.
Option D : None of these

Read Solution (Total 5)

hclAmcat Other Question