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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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