Files
OOP-Cpp/oop_hw6/hw4/box.h
2025-08-11 00:01:30 +08:00

21 lines
309 B
C++

#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;
};