a
This project was built as a homework for OOP class to. It has 5 classes that follows this scheme:
Move all .cpp
files from the Files folder to the main folder, then run this command to compile:
g++ animal.cpp bird.cpp mammal.cpp reptile.cpp archaeopteryx.cpp menu.cpp main.cpp -o main
To run the one file version compile with this:
g++ one_file.cpp -o main
In this project were used the following concepts:
- Virtual functions
- Abstract classes
- Upcast/Downcast
- Dynamic cast
- Runtime polymorfism