-
Notifications
You must be signed in to change notification settings - Fork 1
/
Bill.h
31 lines (27 loc) · 749 Bytes
/
Bill.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef BILL_H
#define BILL_H
#include <iostream>
#include "Order.h"
// class Order;
class Bill
/**
* @brief The Bill class is an abstract class that represents a bill for a customer.
*
* This class provides methods for printing the bill, adding and removing persons from the bill,
* finding a bill by customer ID, getting the order, and getting the total bill amount.
*
* This class is abstract and cannot be instantiated directly.
*/
{
private:
public:
Bill();
virtual void printBill() ;
virtual void addPerson(Bill* Bill) ;
virtual Bill* findBill(int customerId) =0;
virtual void removePerson(int customerId) ;
virtual Order* getOrder() =0;
virtual double getBillTotal() =0;
virtual ~Bill();
};
#endif