OOP HomeWork
This commit is contained in:
21
oop_hw6/hw4/box.h
Normal file
21
oop_hw6/hw4/box.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include <iostream>
|
||||
#include "fruit.h"
|
||||
|
||||
|
||||
class Box {
|
||||
private:
|
||||
void* fruit[8]{};
|
||||
int num = 0;
|
||||
int TotalDate = 0;
|
||||
int lossTotal = 0;
|
||||
public:
|
||||
int returnDate();
|
||||
Box& inBox(Fruit& x);
|
||||
int numApple();
|
||||
int numOrange();
|
||||
int WeightLoss();
|
||||
int totalWeight();
|
||||
void UPDATE_ALL();
|
||||
friend Fruit;
|
||||
};
|
Reference in New Issue
Block a user