Define a Class in C++. (RESTRA)

Define a class RESTRA in C++ with following descriptions:

Private members
  • ·         FoodCode of type int
  • ·         Food of type string
  • ·         FType of type string
  • ·         Sticker of type string
  • ·        A member function GetSticker() to assign the following values for Food Sticker as per the given FType:

FType
Sticker
Vegetarian
GREEN
Contains Egg
YELLOW
Non-vegetarian
RED

Public members
  • ·       A function GetFood() to allow user to enter values for FoodCode, Food, FType and call function GetSticker() to assign Sticker.
  • ·       A function ShowFood() to allow user to view the content of all the data members.




No comments

Post your comments

Powered by Blogger.