infobahn wrote:
csudha wrote:
Please explain the usage of virtual function and friend function
Both of these identifiers are in "user namespace", so you can make
them do whatever you like.
with some examples.
#include <stdio.h>
int virtual(void)
{
return printf("Hello, virtual reality.\n");
}
int friend(void)
{
return printf("Hello, friend.\n");
}
Or whatever. The world is your oyster.
You are in a devious mood today. Unfortunately the reply doesn't
point out the error of his ways - ask C++ questions in a C++
newsgroup, not a C newsgroup.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson