Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  nawaz.exe
Language: C/C++
Code:
 #include<iostream.h>
class fruit
{
int a;char name[10];
public:
void gets()
{
cout<<"its tasty";
}
};
class mango:public fruit
{
public:
void gets()
{
cout<<"its nt tasty";
}
};
int main()
{
mango m;
m.gets();
fruit f;
f.gets();
return 0;

}
          
          
          
          
          
          
Comments: