Using C++ write the following program
Suppose you operate several Eat Street (city university startup) stands distributedthroughout town. Define a class named as Eat Street that has data members like idnumber and a count variable for storing that how many biryani’s the Eat Street has soldthat 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 thismethod justSold() will be invoked each time the stand sells a biryani so that you can trackthe 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 getterfunction to display the number of biryani’s that each object has sold.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here