Suppose you operate several Eat Street (city university startup) stands distributed throughout town. Define a class named as Eat Street that has data members like id number and a count variable for storing that how many biryani’s the Eat Street has sold that day. Create a constructor to initialize both values. Also create a method named as justSold () that increments by one the number of biryani’s that have been sold. The idea is that this method justSold() will be invoked each time the stand sells a biryani so that you can track the total number of biryani’s that have been sold by Eat street. Write a main method to test your class with at least three Eat street objects. Us

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter7: Using Methods
Section: Chapter Questions
Problem 1CP
icon
Related questions
Question

Suppose you operate several Eat Street (city university startup) stands distributed
throughout town. Define a class named as Eat Street that has data members like id
number and a count variable for storing that how many biryani’s the Eat Street has sold
that day.
Create a constructor to initialize both values. Also create a method named as justSold ()
that increments by one the number of biryani’s that have been sold. The idea is that this
method justSold() will be invoked each time the stand sells a biryani so that you can track
the total number of biryani’s that have been sold by Eat street.
Write a main method to test your class with at least three Eat street objects. Use a getter
function to display the number of biryani’s that each object has sold.

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT