Question: Using Eclipse Java Code a Java program to create and use OO classes. Comment your code throughout. Create a Super class named Account Properties Account

Using Eclipse Java

Code a Java program to create and use OO classes.

  • Comment your code throughout.
  • Create aSuperclass namedAccount
  • Properties
  • Account ID
  • Name
  • Balance
  • Constructors
  • A default constructor
  • Constructor with all Account parameters
  • Methods
  • Set and get methods for all properties
  • displayAccount() - displays all properties of an Account

  • Create asubclass namedSavings
  • Properties
  • Rate (Interest rate. Default the value to1%.This is astaticproperty)
  • Constructors
  • A default constructor
  • Methods
  • Set and get methods for all properties
  • displayAccount() - to output all of the properties
  • calcMonthInt() -(calculate the amount of monthly interest asbalance * ( rate/12 ))
  • Then,returnthe amount of monthly interest from calcMonthInt()
  • Create aMain()method to execute your logic.
  • Create 15 Savings objects in an array (use a loop)
  • Theaccount IDswill besav-1001throughsav-1015
  • For thenames, assign the values from the user (Use a dialog input box for this)
  • For thebalances, assign values from an array or from a file
  • Default therateto 1% (as mentioned above)
  • After you have filled the object array, output the contents of that array to the console.
  • Don't be too concerned with minor syntax errors.
  • Draw a line in your code (---------------------) to separate your classes
  • Account
  • Savings
  • Main()

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