Inheritance/Single/C: Difference between revisions
Content added Content deleted
No edit summary |
m (Add links & section header) |
||
Line 1: | Line 1: | ||
==Manual Object System== |
|||
Although C is not considered an OO language, you can do the following, which provides a |
|||
semblance of an OO infrastructure allowing Inheritance and Polymorphism. The original C++ was a |
Although [[C]] is not considered an OO language, you can do the following, which provides a semblance of an OO infrastructure allowing Inheritance and Polymorphism. The original [[C++]] was a front end which translated C++ code to C. (C++ was much simpler in those days.)" |
||
front end which translated C++ code to C. (C++ was much simpler in those days.)" |
|||
<lang c>/* Animal.h */ |
<lang c>/* Animal.h */ |
||
#ifndef _ANIMAL_H |
#ifndef _ANIMAL_H |