is invoked to create an object. A A constructor B. The main method C. A method vith a return type D. A method with the void return type 2-Suppose you wish to provide a getter for a double member gpa, what signature of the method should be used? A public void getGPA() B. public double getGPA() C. public boolean 1SGPA() D public void 15GPA() 3- Suppose you wish to provide an accessor method for a Boolean property finished, what signature of the method should be used? A public int getFinished() B. public boolean isFinished) C. public void 1SFinished() D public void getFinished()

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 6RQ
icon
Related questions
Question
1-
is invoked to create an object.
A A constructor
B. The main method
C. A method with a return type
D. A method with the void return type
2- Suppose you wish to provide a getter for a double member gpa, what signature of the methad should be used?
A. public void getGPA()
B. public double getGPA()
C. public boolean 1SGPA()
D public void isGPA()
3- Suppose you wish to provide an accessor method for a Boolean property finished, what signature of the method should be
used?
A public int getFimished()
B. public boolean isFinished)
C public void isFinished()
D public void getFinished()
Transcribed Image Text:1- is invoked to create an object. A A constructor B. The main method C. A method with a return type D. A method with the void return type 2- Suppose you wish to provide a getter for a double member gpa, what signature of the methad should be used? A. public void getGPA() B. public double getGPA() C. public boolean 1SGPA() D public void isGPA() 3- Suppose you wish to provide an accessor method for a Boolean property finished, what signature of the method should be used? A public int getFimished() B. public boolean isFinished) C public void isFinished() D public void getFinished()
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
void method
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,