UML diagram analysis: refer to the following UML diagram of the Loan Class.  a) How many instance variables does the TV class have?  b) How many methods that return a value does the TV class have?  c) How many static methods does the TV class have?  d) How many constructors does the TV class have?  e) How many defaults data fields does the TV class have?

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter13: Creating A Workbook
Section: Chapter Questions
Problem 8QY
icon
Related questions
Question

UML diagram analysis: refer to the following UML diagram of the Loan Class. 

a) How many instance variables does the TV class have? 

b) How many methods that return a value does the TV class have? 

c) How many static methods does the TV class have? 

d) How many constructors does the TV class have? 

e) How many defaults data fields does the TV class have? 

TV
-channel: int
|- volumeLevel: int
|- on: boolean
+TV ()
#turnon (): void
#turnoff (): void
+setChannel (newChannel: int): void
+setVolume(newVolumeLevel: int): void
+channelUp ): void
+channel Down () : void
+volumeUp () : void
+volume Down (): void
Transcribed Image Text:TV -channel: int |- volumeLevel: int |- on: boolean +TV () #turnon (): void #turnoff (): void +setChannel (newChannel: int): void +setVolume(newVolumeLevel: int): void +channelUp ): void +channel Down () : void +volumeUp () : void +volume Down (): void
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Class
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
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage