Skip to content

Commit c42978e

Browse files
authored
Create JavaExemplo - 09-01-2020
1 parent f4d0f06 commit c42978e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

JavaExemplo - 09-01-2020

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.example.javaexemplo;
2+
3+
public class Track {
4+
private String name;
5+
private String instructor;
6+
7+
Track(String name, String instructor){
8+
this.name = name;
9+
this.instructor = instructor;
10+
}
11+
12+
public String getInstructor() {
13+
return instructor;
14+
}
15+
16+
public void setInstructor(String instructor) {
17+
this.instructor = instructor;
18+
}
19+
20+
public String getName() {
21+
return name;
22+
}
23+
24+
public void setName(String name) {
25+
this.name = name;
26+
}
27+
}

0 commit comments

Comments
 (0)