15.04.2018 Views

programming-for-dummies

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

254<br />

Real-Life Programming Examples<br />

To use the human class in the main program, you need to use the #include<br />

command, such as<br />

#include <br />

#include <br />

#include “animal.h”<br />

#include “human.h”<br />

int main()<br />

{<br />

human cow;<br />

cow.initial_position (1,1);<br />

cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!