In my java class i remember making a barn class that held animal class objects, and my chicken and cow classes (which were children of the animal class) would fit into the barn as if they were their parents.
i was wondering if c++ also allowed this?