subject
Computers and Technology, 13.07.2021 20:40 Geo777

Build a class called Course. java. This class should have 4 properties: CourseId, CourseName, Description, and credit hours. Also add the appropriate set and get methods. Add a display() method to display these 4 properties out to the DOS window. Lastly add a main() method for testing. In the main() method instantiate a Course object, fill it with data using the set methods, then call the display method to display the data. // Code that goes in main() method
Course c1;
c1 = new Course();
c1.setCourseId(109);
c1.setCourseName("Intro to Python");
c1.setDescription("This course intros the Python Prog Lang.");
c1.setCreditHours(4);
c1.display();

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:10
My has been slow anyone else’s ?
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
What shows the web address of the page that is currently displayed in the workspace? status window toolbar location bar internet box
Answers: 1
question
Computers and Technology, 24.06.2019 19:50
Which is a characteristic of free and open-source software licenses? a. the source code is unavailable to everyone b. the source code is available only to the government c. the source code is available to all users d. the source code is constantly modified
Answers: 1
You know the right answer?
Build a class called Course. java. This class should have 4 properties: CourseId, CourseName, Descri...
Questions
question
Mathematics, 19.04.2020 23:08
question
Mathematics, 19.04.2020 23:09
question
Mathematics, 19.04.2020 23:09
question
Mathematics, 19.04.2020 23:09
question
Mathematics, 19.04.2020 23:09
Questions on the website: 13722367