Object Oriented Programming in ANSI C. Basic example showing how OOP can be realized on ANSI C for Figure class.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
365 B

#include "Figure.h"
/* considered to be protected */
void Figure_constructor (Figure *this)
{
// nothing here
// warnings stub
this = this;
}
void Figure_destructor (Figure *this)
{
// nothing here
// warnings stub
this = this;
}
void Figure_copy (Figure *dest, const Figure *src)
{
// nothing here
// warnings stub
dest = (Figure *) src;
}