Question: We want every course to include a title, such as ITP 1 2 0 , and a description, such as Java. How would we

We want every course to include a title, such as "ITP120", and a description, such as "Java". How would we augment our Course class so it contains these two attributes AND makes it possible to both read ("get") and write (set) these two attributes from other java source files?
Group of answer choices
public class Course {
public Strings: title, description;
}
public class Course {
public String title;
public String description;
}
public class Course {
String("title");
String("description");
}
public class Course contains title, description {}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!