Inheritance/Single/C: Difference between revisions

no edit summary
(fix inheritance related problems, static functions)
No edit summary
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 */
#ifndef _ANIMAL_H
Anonymous user