Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
Lab9
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9731050
Lab9
Commits
3c54e18a
Commit
3c54e18a
authored
May 12, 2019
by
9731050
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
third
parent
cc69f804
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
Professor.java
src/org/university/core/Professor.java
+20
-1
No files found.
src/org/university/core/Professor.java
View file @
3c54e18a
package
org
.
university
.
core
;
import
java.util.ArrayList
;
public
class
Professor
extends
Employee
{
private
ArrayList
<
Course
>
courses
;
private
String
group
;
public
Professor
(
String
firstName
,
String
lastName
,
String
ID
,
int
joiningYear
,
Department
department
,
String
position
,
double
basicIncome
,
String
group
)
{
super
(
firstName
,
lastName
,
ID
,
joiningYear
,
department
,
position
,
basicIncome
);
courses
=
new
ArrayList
<>();
this
.
group
=
group
;
}
public
ArrayList
<
Course
>
getCourses
()
{
return
courses
;
}
public
String
getGroup
()
{
return
group
;
}
public
void
addCourse
(
Course
c
){
courses
.
add
(
c
);
}
}
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