Advertisement

fjrg76

image

Biography has not been added

fjrg76

's contributions
Articles
Comments
    • I disagree with "in OOC there aren't inheritance, dynamic binding and polymorphism". All these three components can be actually implemented in C. Inheritance can be simulated when an instance object of the base class is placed as the very first data member in the inherited class. Dynamic binding is just a function pointer. Polymorphism can be achieved using this same technique. I also disagree with "information hidding". Information hidding means that the class' client must not see nor manipulate directly any data member (as long as it's marked as private). In C this behavior is accomplished through opaque pointers. Last, but not least, the given example is an awful one.