// Note:Your choice is C++ IDE
#include <iostream>
using namespace std;
class Animal{
public:
int feet;
int hands;
virtual void move(){};
};
class Fish:public Animal{
public:
int feet;
int hands;
int set1(){
feet=0;
return feet;}
int set2(){
hands=0;
return hands;}
void move(){
cout<<"Fish"<<endl;
cout<<"Feet: "<<set1()<<endl;
cout<<"Hands: "<<set2()<<endl;
cout<<"Fish can move by swimming!"<<endl<<endl;}
};
class Bird:public Animal{
public:
int feet;
int hands;
int set1(){
feet=2;
return feet;}
int set2(){
hands=0;
return hands;}
void move(){
cout<<"Bird"<<endl;
cout<<"Feet: "<<set1()<<endl;
cout<<"Hands: "<<set2()<<endl;
cout<<"Fish can move by swimming!"<<endl;}
};
int main()
{
Fish f;
f.move();
Bird b;
b.move();
return 0;
}