Skip to content
Snippets Groups Projects
Commit 5034d26a authored by Rudi Buss's avatar Rudi Buss
Browse files

Update Exercise 1 - Animal.txt

parent ffc85078
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ public:
void displaydata()
{
cout <<"There are "<<Number << " animals with " <<Weight <<" kg each available<<endl;
cout <<"There are "<<Number << " animals with " <<Weight <<" kg each available"<<endl;
}
};
......@@ -37,4 +37,4 @@ There should be 3 classes in the program:
- The subclass DairyCattle (with the data member milkyield)
Use a constructor with a member initialization list that attaches values to the data members.
Create an instance of the class SlaughterCattle and DairyCattle and display the data on the screen.
Create an instance of the class SlaughterCattle and DairyCattle and display the data on the screen.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment