
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
I need help creating a UML chart for this given Java abstract airplane class code below:
public abstract class Airplane {
private int numPassengers, numSeats, numStaff, price;
private String name_record, model, color, type;
private float speed, fuelCapacity;
public abstract String getModel();
public abstract String getColor();
public abstract String getType();
public abstract float getSpeed();
public boolean isSeatAvailable() {
return this.numPassengers < this.numSeats ? true : false;
}
public int numSeatAvailable() {
return this.numSeats - this.numPassengers;
}
public int calculatePrice(int noPassenger) {
return this.price * noPassenger;
}
public float calculateFuelCharge(float fuelPrice) {
return this.fuelCapacity * fuelPrice;
}
}
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Given the following code and instructions:Is the provided implemented correctly for said instructions?The main class Ride contains: public abstract boolean ableToRun(int numberofRuns);public abstract boolean checkRide(String[] components);public abstract double costPerPassenger(int numberOfStops);arrow_forwardConsider the following class public class Ketchup extends Food implements Tasty{ public String brand; private Snack snack; } Select ALL that are correct based this class. Ketchup is a Food Ketchup is a Tasty Ketchup is an Object Ketchup is a Snack Food is a Tasty Snack is a Tasty Food is a Snackarrow_forwardUsing the class diagram in the image below, write a small report (200- 300 words) on how to create customer, car, and parking lot classes for an object-oriented parking system using java.arrow_forward
- methode code below abstract class Method { // declaration of variables protected int input; protected String output; // Abstract methods public abstract boolean isHard(); public abstract String specificWay(); public abstract void Method(); public abstract void Method(int input, String output); // Getter methods for the input field public int getInput() { return this.input; } // Setter methods for the input field public void setInput(int input) { this.input = input; } // Getter methods for the output field public String getOutput() { return this.output; } // Setter methods for the output field public void setOutput(String output) { this.output = output; } // Custom string representation of the object public String toString() { return "Method"; }}arrow_forwardIn the class diagram below we have a money class for an object-oriented parking system that is to be designed using java. Briefly explain any implementation decisions and the reasoning behind those without writing the complete code. N.B explain how the implementation will proceed instead of writing codearrow_forwardFinish the constructor for the KickBall class. public class Ball { public double diameter; public Ball(double diam) { diameter = diam; public class KickBall extends Ball private Color ballColor; public KickBall(double diam, Color ballColor) {arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education