实 验 报 告姓名:班级:学号:课程:c++面对对象程序设计一、实验题目:类和对象二、实验地点:闽江学院实验楼 201三、实验目的:1.了解 C++面对对象程序设计的基本概念以及了解 C++程序的基本结构。2.了解类,对象的概念,掌握类及类中成员函数的定义及使用方法。3.掌握对象的定义及使用方法。4.了解构造函数,析构函数,拷贝构造函数的作用,特点,定义方式及使用方法。四、实验内容:1.定义一个日期类 Date,该类对象存放一个日期,可以提供的接口有:Void getDate(); 2011 年 10 月 17 日#includeusing namespace std;class Date{ int year; int month; int day;public : Date(){year=2024; month=10; day=16;} Date(Date& n):year,month,day{} void getDate() {cout<#includeusing namespace std;class FDAccount{ int num; char*name; int exist; int month;public:FDAccount() {num=1201;name="XXXXXXXX";exist=0;month=0;}void setFDAccount(int x,char s[15],int k,int m){num=x;name=s;exist=k;month=m;}int getNum() {return num;}string getName() {return name;}int Exist(int x) {return exist-x;}int getExist() {return exist;}int getMonth() {return month;}void getFDAccount(){cout<<"账户: "<>cash;if(cash>5000000)cout<<"金额不足"<