Example | animal.h | animal.cpp | driver.cpp | Notes |
---|---|---|---|---|
1 | ![]() |
![]() |
![]() |
Basic class definition |
2 | ![]() |
![]() |
“Inline” function definitions | |
3 | ![]() |
![]() |
Special “return reference” type | |
4 | ![]() |
![]() |
friend operator<< and making it work with cout |