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

  Discuss when scripting should be taught to individuals

Discuss when scripting should be taught to individuals who are learning software programming and discuss the advantages and disadvantages of doing so at specific times in their learning process.

  Implement a tic tac toe game in any programming language

You have to do this assignment to make a game in computer programming language tic tac the boxes of the game should be interactive and in red and green color

  Design a class-based solution to a problem

To design a class-based solution to a problem using multiple data structures.

  Write program to ask user for low and high integer

Write a program that asks the user for the low and high integer in a range of integers. The program then asks the user for integers to be added up.

  Write a c function called values that returns void

Write a C function called values that returns void and takes two double precision arguments (called a and b) and one double precision array argument.

  Write a program that uses the curve class hierarchy

Write a program that uses the curve class hierarchy. The program should define several different objects, output their area, circumference, etc. It should also use the printcurve function.

  Explaining variable in an arrays of ints

Assume that variable A is an arrays of ints. Consider the following code segment.

  Logic for a program that performs arithmetic functions

Create the logic for a program that performs arithmetic functions. Design the program to contain two numeric variables. Prompt the user for values for the variables

  Problem 1 where on the implied uncertainty spectrum do the

problem 1 where on the implied uncertainty spectrum do the following products fall? fill the letters a b or c in three

  Create the css for a website

Create a file called lab1.html which contains the HTML of a blog page. Create another filelab1.css which is linked from lab1.html , and which contains all the style formatting of thedocument. These files must match the specification given below.

  Program-customer-s names phone numbers in alphabetical order

Load file into parallel arrays and display list of customers' names and phone numbers in alphabetical order.

  Program to display number of times name appears in file

You have read all names from the file, display number of times this name appears in file. write logic - step by step - to show code program to accomplish this task.

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