Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Prog1_WS2017_18_Wienkop
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Uwe Wienkop
Prog1_WS2017_18_Wienkop
Commits
88885261
Commit
88885261
authored
Dec 04, 2017
by
Uwe Wienkop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kleine Ergänzungen
parent
64509866
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
Prog1_WS2017-18/09Uhrzeit/Program.cs
Prog1_WS2017-18/09Uhrzeit/Program.cs
+4
-0
Prog1_WS2017-18/09Uhrzeit/Uhrzeit.cs
Prog1_WS2017-18/09Uhrzeit/Uhrzeit.cs
+10
-0
No files found.
Prog1_WS2017-18/09Uhrzeit/Program.cs
View file @
88885261
...
...
@@ -17,6 +17,10 @@ namespace _09Uhrzeit
Console
.
WriteLine
(
z2
.
ToString
(
"h.m:s"
));
int
std1
=
z1
.
Stunde
;
int
std2
=
z1
.
getStunde
();
z1
.
Stunde
=
12
;
z1
.
setStunde
(
12
);
}
}
}
Prog1_WS2017-18/09Uhrzeit/Uhrzeit.cs
View file @
88885261
...
...
@@ -10,9 +10,19 @@ namespace _09Uhrzeit
{
private
int
stunde
,
minute
,
sekunde
;
public
int
getStunde
()
{
return
stunde
;
}
public
void
setStunde
(
int
value
)
{
if
(
value
>=
0
&&
value
<=
23
)
stunde
=
value
;
}
public
int
Stunde
{
get
{
return
stunde
;
}
set
{
if
(
value
>=
0
&&
value
<=
23
)
stunde
=
value
;
}
}
public
override
string
ToString
()
// wird aufgerufen von WriteLine(z1)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment