http://ideone.com/7n14wCode:#include<iostream> #include<string> using namespace std; class Date { int day; int month; int year; public: Date (int Day=1, int Month=1, int Year=1970) { day = Day; month = Month; year = Year; } int getDay() {return day;} int getMonth() {return month;} int getYear() {return year;} }; /*InventoryItem containing Name, Cost, Quantity, DatePurchased(Object of the date Class), InventoryTotal(Static Variable)*/ class InventoryItem { string Name; double Cost; int Quantity; Date DatePurchased; static int InventoryTotal; public: InventoryItem (string strName, double dCost, int nQuantity, Date cDatePurchased(int, int, int), int s_nInventoryTotal) { Name = strName; Cost = dCost; Quantity = nQuantity; DatePurchased = cDatePurchased(10,10,2010); InventoryTotal = s_nInventoryTotal; } string getName() {return Name;} double getCost() {return Cost;} int getQuantity() {return Quantity;} Date getDatePurchased() {return DatePurchased();} int getInventoryTotal() {return InventoryTotal;} }; int main () { //InventoryItem.cDatePurchased(10,10,2010); cout << InventoryItem.getDatePurchased(); }