Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a JAVA PROGRAM that stores and displays information about a set of Affair. Make three separate files for Affair class, AffairTester class and Arranger

image text in transcribed

Create a JAVA PROGRAM that stores and displays information about a set of Affair. Make three separate files for Affair class, AffairTester class and Arranger class 1)Affair class should simulate a set of Affairs 2) Use four variables for year, month, day and Affair title 3) Include argument constructor and no-argument constructor to initialize the instance variables. 4) Use getter and setter to access each of the instance variables (Eight methods in total.) AffairTester Class must test the methods and constructors of the Affair class 1) Construct two objects for argument constructer and no-argument constructor 2) On argument constructor, call all the getter methods to make sure the instance variables were initialized correctly 3) On no-argument constructor, call all the setter methods and set the instance variables to the values of your choosing 4) Call all the getter methods to make sure the setters worked correctly Arranger Class: This class will use the Affair class to simulate 3 sets of affairs 1) Create 3 objects of the Affair class using the argument constructor Set the values of the instance variables to the information of your choosing 2) Using the getter methods, display each set of Affair information as a sentence 1:38 PM O Type here to search 1/29/2018

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions