computer science c++

profilefaatetak

 

Design a class 

named LunchBox

. The class 

should have the member variables 

width

size

color

and 

food

.

Declare all member variables as 

private

. Add a 

default constructor and a constructor 

that expects values for all member variables as parameters and assigns each value to the 

corresponding member variable.

Also, add 

getter 

function

for each member variable. Add a 

setter function for the food member va

riable only.

Declare all constructors and functions as 

public

.

  • 7 years ago
  • 25
Answer(3)

Purchase the answer to view it

blurred-text
  • attachment
    LunchBox1.rar
  • attachment
    WhatsAppImage2019-01-28at12.51.49AM.jpeg
  • attachment
    LunchBox1.zip

Purchase the answer to view it

blurred-text
NOT RATED

Purchase the answer to view it

blurred-text
NOT RATED
  • attachment
    cpp-lunch-box..zip