Write and explain the following C++ programming . Suppose you operate several Eat Street (city university startup) stands distributed throughout town. Define a class named as Eat Street that has data...


Write and explain the following C++ programming


. 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.



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here