Question Task 3: Write a main() method inside of the ReadMethod class, having the following: 1. Let the user input an integer 2. Create a new instance of the ReadMethod class with 3 input arguments: the input integer, a String "Talk yourInputineger times", a String "English" 3. Display the instance on the console. Your console display must match the following: input an integer: 1000 input=1000, output=Talk 1000 times isHard: true, language= English, Specific Way: Speak Loud! Task 1: Write an abstract class Method +: public -: private #: protected Underline: static # input: int # output:String Method + isHard():boolean + specificWay():String + Method() + Method(input: int, output: String) + getInput(): int + setInput(input: int): void + getOutput(): String + setOutput(output: String): void +toString(): String Question Task 2: Write a class ReadMethod that extends the Method class. +: public -: private #: protected Underline: static -language: String ReadMethod Question + ReadMethod() + ReadMethod(input: int, output: String, language: String) + isHard():boolean + specific Way(): String +toString(): String + getLanguage(): String + setLanguage(language: String): void

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter10: Object-oriented Programming
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question
Question
Task 3: Write a main() method inside of the ReadMethod class, having the following:
1. Let the user input an integer
2. Create a new instance of the ReadMethod class with 3 input arguments: the input integer,
a String "Talk yourInputineger times", a String "English"
3. Display the instance on the console.
Your console display must match the following:
input an integer:
1000
input=1000, output=Talk 1000 times
isHard: true, language= English, Specific Way: Speak Loud!
Transcribed Image Text:Question Task 3: Write a main() method inside of the ReadMethod class, having the following: 1. Let the user input an integer 2. Create a new instance of the ReadMethod class with 3 input arguments: the input integer, a String "Talk yourInputineger times", a String "English" 3. Display the instance on the console. Your console display must match the following: input an integer: 1000 input=1000, output=Talk 1000 times isHard: true, language= English, Specific Way: Speak Loud!
Task 1: Write an abstract class Method
+: public
-: private
#: protected
Underline: static
# input: int
# output:String
Method
+ isHard():boolean
+ specificWay():String
+ Method()
+ Method(input: int, output: String)
+ getInput(): int
+ setInput(input: int): void
+ getOutput(): String
+ setOutput(output: String): void
+toString(): String
Question
Task 2: Write a class ReadMethod that extends the Method class.
+: public
-: private
#: protected
Underline: static
-language: String
ReadMethod
Question
+ ReadMethod()
+ ReadMethod(input: int, output: String, language: String)
+ isHard():boolean
+ specific Way(): String
+toString(): String
+ getLanguage(): String
+ setLanguage(language: String): void
Transcribed Image Text:Task 1: Write an abstract class Method +: public -: private #: protected Underline: static # input: int # output:String Method + isHard():boolean + specificWay():String + Method() + Method(input: int, output: String) + getInput(): int + setInput(input: int): void + getOutput(): String + setOutput(output: String): void +toString(): String Question Task 2: Write a class ReadMethod that extends the Method class. +: public -: private #: protected Underline: static -language: String ReadMethod Question + ReadMethod() + ReadMethod(input: int, output: String, language: String) + isHard():boolean + specific Way(): String +toString(): String + getLanguage(): String + setLanguage(language: String): void
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning