Good Afternoon
12:40 pm

Sponsor Area

Sponsor Area

Question is

Define a class RESTRA in C++ with following description: 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 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
  • A function ShowFood() to allow user to view the concept of all the data members.

Mock Test Series

Sponsor Area

Sponsor Area

NCERT Book Store

NCERT Sample Papers

Entrance Exams Preparation