Design and implement an automobile class along with subclass

Assignment Help Programming Languages
Reference no: EM13782092

Design and implement an automobile class along with four subclasses using the following guidelines:

Create a class named Automobile and four subclasses. They can be any named anything you want that is considered an automobile. You can use brand names, car types, etc.

Some examples: SUV, Electric, Mercedes, Convertible.

Whatever you choose, all four subclasses should be somewhat related.

The Automobile class the following data fields:

licensePlateNumber
isStarted
isForSale

The Automobile class also has methods for setting and getting the values of each of the fields.The Automobile class also has a constructor that sets the isStarted and isForSale data fields to false.The Automobile class also has methods for describing what the automobile looks like (e.g., color, shape, condition, etc.). This is again your choice.Each of the four subclasses should also contain one additional data field and the appropriate get/set methods.Finally, create a Java test class that simulates using your Automobile class and its subclasses. In your test class you should, at a minimum:

construct at least one instance of each automobile

start at least two of the instances
put at least two of the instances up for sale (at least one of the not-started instances)
print the description for each of the instances

Additionally, draw a UML class diagram of your classes using PowerPoint (PPT), Draw.io, or any other graphical editing tool.

Be sure your code compiles and runs as expected.

Reference no: EM13782092

Questions Cloud

Summary and evaluation of book-criminals of the bible : This assignment is a to-the-point summary and evaluation of one of the following books: Jones, Criminals of the Bible (2006). Nemeth, Aquinas in the Courtroom (2001)
Understanding of the topics and course materials : Your responses are to be in your own words with no quotes, paraphrasing or copying. What I am looking for in your responses are your thoughts and opinions that demonstrates your understanding of the topics and course materials. You must have two p..
Identify and make contact with a local politician or social : Identify and make contact with a local politician or social welfare administrator in your community.  Your task is to interview a politician or administrator and learn her/his position on a social welfare issue/problem of your choice and to present a..
Write a paper about human trafficking in new york community : Write a Research paper about Human trafficking in New York community.
Design and implement an automobile class along with subclass : Design and implement an automobile class along with four subclasses using the following guidelines: Create a class named Automobile and four subclasses. They can be any named anything you want that is considered an automobile. You can use brand nam..
Unconditional positive regard in the treatment : If Abby were 5 years old and, instead of the symptoms listed in the scenario, her symptoms included nightmares, physical complaints, recurrent separation-related fear, and a refusal to leave home, what DSM-5 disorder label might match her symptoms..
Stage of industry evolution issues : In many companies, innovative people are likely to be found in foreign operations.
About analyzing an organizational structure : How would you go about analyzing an organizational structure in terms of creating a work breakdown structure? What are the major organizational characteristics that you would evaluate? Provide an example to support your response. You may use your CLC..
Consider the following information and find the wacc : Consider the following information for Evenflow Power Co., Debt: 3,000 7.5 percent coupon bonds outstanding, $1,000 par value, 21 years to maturity, selling for 103 percent of par; the bonds make semiannual payments and have a YTM of 7.22%.

Reviews

Write a Review

Programming Languages Questions & Answers

  Create two objects p and q and generate 10 random numbers

Create Two objects P and Q. in object P the array a is type int and size 10, in Q array a is string type and size 12b. Generate 10 random numbers

  Write program which permits user to enter first name

Write the program which permits the user to enter first names of candidates in university election and number of votes received by each candidate.

  Develop a functional web-based application for a calculator

Develop a functional web-based application for a calculator. It does not need to be live; you can provide JavaScript, CSS, and HTML files. The calculator should successfully complete addition, subtraction, multiplication, and division operations.

  Program ask user to enter starting amount in savings account

There is a Savings and a Checking account. Your program should begin by asking the user to enter the starting amount in the checking and savings accounts.

  Write a little man program that adds a column of input value

Write a Little Man program that adds a column of input values and produces the sum as output. An input value of zero will indicate the last value in the input stream of input values.

  Extend the user management

Extend the user management so that user can be stored in database - user can be administrator and he can access that admin page

  You have been tasked with building a payroll program for a

you have been tasked with building a payroll program for a large organization with offices spread across the united

  Write methods for calculating maximum value of array

Write down the methods for calculating maximum value, minimum value, and mean value of array. Use these methods to calculate and display minimum of array.

  Create program which lists total points scored

Create program which lists total points scored for each of 30 classrooms. Include invalid input check if a proper room number is not entered.

  Architecting web-applications using web-services

Architecting web-applications using web-services has advantages. Forexample, you can gain increased security. Describe other advantages otherthan security gained by using web-services.

  Write down an application with three labeled text elds one

write an application with three labeled text ?elds one each for the initial amount of a savings account the annual

  Write program to reads student-s name together with score

Write a program that reads a student's name together with his or her test score. The program should then compute the average test score for each student.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd