Review - Icecream Class ● . . . . ● Declare a class called Icecream Add a default constructor Add the following fields - flavor, scoopCount, isCone Add a method called setScoop Count that takes in a number for how many scoops and assigns it the scoopCount field. This method does not need to return anything. ● . Add a method called setFlavor that takes the name of an ice cream flavor and assigns it the flavor field. This method does not need to return anything. ● Add a method called isCone that takes in a true or false value of whether or not the ice cream is on a cone or not. This method does not need to return anything. Add a method called getScoopCount that doesn't take in any values and returns the value of the scoop Count field Add a method called getFlavor that doesn't take in any values and returns the value of the flavor field Add a method called isCone that doesn't take in any values and returns the value of the isCone field Add a method call addScoop that doesn't take in any values and add one more scoop to the icecream and returns the new value of the scoopCount field Add a method called details that doesn't take in or return any values and prints out the details of the ice cream (flavor, number of scoops, whether it's a cone or not)
Review - Icecream Class ● . . . . ● Declare a class called Icecream Add a default constructor Add the following fields - flavor, scoopCount, isCone Add a method called setScoop Count that takes in a number for how many scoops and assigns it the scoopCount field. This method does not need to return anything. ● . Add a method called setFlavor that takes the name of an ice cream flavor and assigns it the flavor field. This method does not need to return anything. ● Add a method called isCone that takes in a true or false value of whether or not the ice cream is on a cone or not. This method does not need to return anything. Add a method called getScoopCount that doesn't take in any values and returns the value of the scoop Count field Add a method called getFlavor that doesn't take in any values and returns the value of the flavor field Add a method called isCone that doesn't take in any values and returns the value of the isCone field Add a method call addScoop that doesn't take in any values and add one more scoop to the icecream and returns the new value of the scoopCount field Add a method called details that doesn't take in or return any values and prints out the details of the ice cream (flavor, number of scoops, whether it's a cone or not)
Chapter5: Making Decisions
Section: Chapter Questions
Problem 8PE
Related questions
Question
100%
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
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.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,