















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















#include
vector
vector
class Animal { public: double weight(); double age(); ... private: double m_weight; double m_age; ... };
class Dog { public: double weight(); double age(); bool hasFleas(); void bark(); private: double m_weight; double m_age; bool m_hasFleas; ... };
virtual double age() = 0;
g++ -o hello hello.cc goodbye.cc
g++ -c hello.cc g++ -c goodbye.cc g++ -o hello hello.o goodbye.o
target : dependencies command
objects = hello.o goodbye.o hello : $(objects) g++ -o hello $(objects) ...
hello.o : hello.cc goodbye.h
g++ -g -o MyProg MyProg.cc
ddd MyProg