Java Assignment 2

Java Assignment 2 - 1. Write Java classes having class...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1. Write Java classes having class level variables, set and get methods, a default constructor and a parameterized constructor for the following: a. Class Course i. Class level variables – CourseID, CourseName, Fees, Duration, StartDate, FacultyName. ii. Write all the set and get methods for the class level variables. iii. Write one default constructor iv. Write one parameterized constructor taking CourseID, CourseName, Fees, Duration, StartDate, FacultyName as parameters and assign them to the class level variables. v. Write main which creates 2 objects of the class – 1 st object is created using the default constructor and 2 nd object is created using the parameterized constructor. vi. On the 1 st object call the set methods to assign values to the class level variables and on the 2 nd object do not call the set methods since the values to the class level variables would be assigned by the parameterized constructor.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/15/2011 for the course ECO 2023 taught by Professor Mr.raza during the Summer '10 term at FAU.

Page1 / 2

Java Assignment 2 - 1. Write Java classes having class...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online