below is a program that i have written. i need help on writing the strings towar
ID: 3824550 • Letter: B
Question
below is a program that i have written. i need help on writing the strings towards the bottom of the file where it says String getName and the rest of the strings...
The program is written in java, and im using the software called dr. java
class Cls {
String name;
String subject;
String course_no;
String section;
String year;
int semester;
Person instructor;
Student [] students;
Cls (String n, String s, String o, String s_no, String y, int sem) {
name = n;
subject = s;
course_no = c;
section_no = s_no
year = y
semester = sem;
instructor = new Person();
students = Null;
setInstructor
String getInstructorFullName () {
return instructor.getFullName();
}
String getInstructorEmail () {
return instructor.getEmail();
}
String getName () {
}
String getSubject () {
}
String getCourseNo() {
}
String getSection () {
}
String getYear () {
}
Explanation / Answer
String getName () {
return name;
}
String getSubject () {
return subject;
}
String getCourseNo() {
return course_no;
}
String getSection () {
return section;
}
String getYear () {
return year;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.