Define a class License that has a driving license number, name and address. Define
constructors that take on parameter that is just the number and another where all
parameters are present.
�
#include <iostream>
#include <string>
using namespace std;
class License{
private:
string drivingLicenseNumber;
string name;
string address;
public:
License( string drivingLicenseNumber,string name,string address){
this->drivingLicenseNumber=drivingLicenseNumber;
this->name=name;
this->address=address;
}
};
int main() {
system("pause");
return 0;
}
Comments
Leave a comment