Create a class Course to describe a course according to the following requirements: A course has three attributes: courseName, courseCode, fees. Create a constructor without parameters to initialize all the instance variables to default values (0 for numbers and "" for a string). Create a constructor to initialize all the attributes to specific values. Add all setter and getter methods Create a tester class with the main method. The tester class must be named using your first and last In this class performs the following: Create a course object c1 using the default constructor. Create a course object c2 with the following information: courseName =” object oriented programing”, courseCode = “CS230” , fees = a value from your choice. Change the course fees of c2 to your age. Print the course information of c2 using getter methods

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter13: Handling Events
Section: Chapter Questions
Problem 2RQ
icon
Related questions
Question
  1. Create a class Course to describe a course according to the following requirements: A course has three attributes: courseName, courseCode, fees.
  2. Create a constructor without parameters to initialize all the instance variables to default values (0 for numbers and "" for a string).
  3. Create a constructor to initialize all the attributes to specific values.
  4. Add all setter and getter methods
  5. Create a tester class with the main method. The tester class must be named using your first and last In this class performs the following:
  6. Create a course object c1 using the default constructor.
  7. Create a course object c2 with the following information: courseName =” object oriented programing”, courseCode = “CS230” , fees = a value from your choice.
  8. Change the course fees of c2 to your age.
  9. Print the course information of c2 using getter methods

 

I attached Typical run of the program

Compile Messages ¡GRASP Messages Run 1/0 Interactions
End
Clear
Help
----GRASP exec: java Assignment203
course name: object oriented programing
course code: CS230
fees: 30.0
----GRASP: operation complete.
L
Transcribed Image Text:Compile Messages ¡GRASP Messages Run 1/0 Interactions End Clear Help ----GRASP exec: java Assignment203 course name: object oriented programing course code: CS230 fees: 30.0 ----GRASP: operation complete. L
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning