Polymorphism/C: Difference between revisions
Updated formatting to use <syntaxhighlight>.
m (lang tag) |
(Updated formatting to use <syntaxhighlight>.) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1:
{{Programming-example-page|Polymorphism}}
<syntaxhighlight lang
{
if(pthis && *pthis)
{
▲ free(*pthis); *pthis = NULL;
}
}
{
struct _Circle
{
Point point;
▲ Point point;
▲ } Circle;
{
if(pthis && *pthis)
{
▲ free(*pthis); *pthis = NULL;
}
}
}</syntaxhighlight>
|