Please answer the questions below according to the given UML diagram. a) Write the source code of class Person. b) Write the source code of interface Act. c) Write the source code of class Movie. The getMoreInfo method of class Movie returns the imdb score of that movie in String such as (imdb: 6.3)

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question
100%

[JAVA]

Please answer the questions below according to the given UML diagram.

a) Write the source code of class Person.

b) Write the source code of interface Act.

c) Write the source code of class Movie. The getMoreInfo method of class Movie returns the imdb score of that movie in String such as (imdb: 6.3)

«interface»
«Abstract»
Act
Person
TVSeries
-name : String
+ Person( String )
+ getName( ): String
+ getName( ): String
+ getYear(): int
|+ getMorelnfo( ) : String
TheatreticalPlay
Actor
- stageName : String
|- acts[]: Act
+ Actor( name, stageName : String )
+ getStageName( ): String
+ setStageName( String)
+ addAct( anAct : Act)
|+ toString( ): String
Movie
movieName : String
1
year: int
imdbScore : double
+ Movie( String, int )
+ getimdbScore(): double
+ setlmdbScore( double )
MainProgram
+ main( String[])
Transcribed Image Text:«interface» «Abstract» Act Person TVSeries -name : String + Person( String ) + getName( ): String + getName( ): String + getYear(): int |+ getMorelnfo( ) : String TheatreticalPlay Actor - stageName : String |- acts[]: Act + Actor( name, stageName : String ) + getStageName( ): String + setStageName( String) + addAct( anAct : Act) |+ toString( ): String Movie movieName : String 1 year: int imdbScore : double + Movie( String, int ) + getimdbScore(): double + setlmdbScore( double ) MainProgram + main( String[])
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Concept of pointer parameter
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,