Inheritance/Single/C: Difference between revisions
Content added Content deleted
(fix inheritance related problems, static functions) |
No edit summary |
||
Line 1: | Line 1: | ||
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.)" |
|||
<lang c>/* Animal.h */ |
<lang c>/* Animal.h */ |
||
#ifndef _ANIMAL_H |
#ifndef _ANIMAL_H |