Student Reviews
( 5 Of 5 )
1 review
Video of Implementing Python-like Object Oriented Patterns in C in C Programming course by Chuck Severance channel, video No. 20 free certified online
This lecture details building a point object in C without native object-oriented support. It uses a structure with two double values (x and y) and three function pointers for methods (dump, del, origin). The structure is fixed at 40 bytes (8 bytes per double and 8 bytes per function pointer).
This implementation illustrates how Python's early OOP layer was designed in 1991 by Guido van Rossum using C structures and function pointers. It also shows the historical parallel with C++, which initially transformed OOP syntax into C code.
For more materials, auto graders, and more courses, please see www.masterprogrammer.com.