Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VHB C++ EN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rudi Buss
VHB C++ EN
Commits
5034d26a
Commit
5034d26a
authored
6 months ago
by
Rudi Buss
Browse files
Options
Downloads
Patches
Plain Diff
Update Exercise 1 - Animal.txt
parent
ffc85078
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Part 1/9. Inheritance/Exercises/Exercise 1 - Animal.txt
+2
-2
2 additions, 2 deletions
Part 1/9. Inheritance/Exercises/Exercise 1 - Animal.txt
with
2 additions
and
2 deletions
Part 1/9. Inheritance/Exercises/Exercise 1 - Animal.txt
+
2
−
2
View file @
5034d26a
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment