Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this question, assume the following implementation of the class Person and the following UML diagram Person Class Implementation 1 public class Person 2 private

image text in transcribed

image text in transcribed

For this question, assume the following implementation of the class Person and the following UML diagram Person Class Implementation 1 public class Person 2 private String name; 3 private int age; 4 private double heightInCM; 5 6 public Person (String na, int ag, double he) { 7 name = na; 8 age = ag; 9 heightInCM = he; ; 10 } 11 12 public String getName() { 13 return name; ; 14 } 15 public int getAge() { 16 return age; } 18 public double getHeightInCM() { 19 return heightInCM; 20 } 21 22 public String toString() { 23 return getName() 24 + ": Age: + getAge() 25 + " Height: + getHeightInCM() + cm"; 26 } 27 } 17 11 > Person - name : String - age : int - double : heightInCM + Person (String na, int ag, double he) + getName(): String + getAge(): int + getHeightInCMO: double + toString(): String > Student - studentID : int - school : String + Student (String na, int ag, double he, int id, String sch) + getStudentID): int + getSchool0 : String Question Using the UML Diagram displayed here, create the Student class

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

Students also viewed these Databases questions