Create an abstract Division class with fields for a companys division name and account number, and an

Question:

Create an abstract Division class with fields for a company’s division name and account number, and an abstract display() method. Use a constructor in the superclass that requires values for both fields. Create two subclasses named InternationalDivision and DomesticDivision. The InternationalDivision includes a field for the country in which the division is located and a field for the language spoken; its constructor requires both. The DomesticDivision includes a field for the state in which the division is located; a value for this field is required by the constructor. Write an application named UseDivision that creates InternationalDivision and DomesticDivision objects for two different companies and displays information about them. Save the files as Division.java, InternationalDivision.java, DomesticDivision.java, and UseDivision.java.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: