Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 Class student to describe a student according to the following requirements: A student has two attributes: name and id.

Create a constructor without parameters to initialize all the instance variables (i.e., name and id) to your name and student id.

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:

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

Create a student object s using the default constructor and print all students information.

image text in transcribed

coursenametobjectorieatedprograningcoursecodescs230feest30,0studentnamessaraMaha=adstudentid1123456789monjorusPaoperationcomplete

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

ISBN: 0619064625, 978-0619064624

Students also viewed these Databases questions

Question

Most annuities are categorized as annuities due. True or False

Answered: 1 week ago

Question

Explain the importance of Human Resource Management

Answered: 1 week ago

Question

Discuss the scope of Human Resource Management

Answered: 1 week ago

Question

Discuss the different types of leadership

Answered: 1 week ago

Question

Write a note on Organisation manuals

Answered: 1 week ago

Question

Guidelines for Informative Speeches?

Answered: 1 week ago