#include <iostream>

using namespace std;

class Cow{
public:
    int legs;
    double weight;
    int getLegs(){return legs;}
};

int main(){

    Cow * herd[8];

    herd[0] = new Cow;

    herd[0]->legs = 5;
    cout << (*(herd[0])).legs << endl;
    cout << herd[0]->legs << endl;
    cout << herd[0]->getLegs() << endl;

    cout << "my cow is this big: " << sizeof(Cow) << endl;

    return 0;
}

