Question: 1. Create a class Course to describe a course according to the following requirements: A course has three attributes: courseName, courseCode, fees. a. Create a

 1. Create a class Course to describe a course according to

1. Create a class Course to describe a course according to the following requirements: A course has three attributes: courseName, courseCode, fees. a. Create a constructor without parameters to initialize all the instance variables to default values ( 0 for numbers and "" for a string). b. Create a constructor to initialize all the attributes to specific values. c. Add all setter and getter methods 2. Create a Class student to describe a student according to the following requirements: A student has two attributes: name and id. a. Create a constructor without parameters to initialize all the instance variables (i.e., name and id) to your name and student id. 3. Create a tester class with the main method. The tester class must be named using your first and last name. In this class performs the following: a. Create a course object el using the default constructor. b. Create a course object c2 with the following information: courseName = " object oriented programing", courseCode = "CS230", fees = a value from your choice. c. Change the course fees of c2 to your age. d. Print the course information of c2 using getter methods e. Create a student object s using the default constructor and print all student's information

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 Databases Questions!