PPL Assignment
IRM2015006
Gift Class Reference

#include <gift.h>

Collaboration diagram for Gift:
Collaboration graph

Public Member Functions

 Gift ()
 
 Gift (std::string name, GiftType type, int price, int value)
 

Public Attributes

std::string name
 
GiftType type
 
int price
 
int value
 
bool gifted
 

Detailed Description

Class for Gifts

Definition at line 14 of file gift.h.

Constructor & Destructor Documentation

Gift::Gift ( )

The default constructor Parametrized constructor

Definition at line 19 of file gift.cpp.

Gift::Gift ( std::string  name,
GiftType  type,
int  price,
int  value 
)

Definition at line 24 of file gift.cpp.

Member Data Documentation

bool Gift::gifted

Whether the gift has been gifted required for couple operations

Definition at line 21 of file gift.h.

std::string Gift::name

Name of the gift

Definition at line 17 of file gift.h.

int Gift::price

The price of the gift

Definition at line 19 of file gift.h.

GiftType Gift::type

Type of the gift

Definition at line 18 of file gift.h.

int Gift::value

The value of the gift

Definition at line 20 of file gift.h.


The documentation for this class was generated from the following files: