Question #285183

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.



�

Expert's answer





#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;
}

LATEST TUTORIALS
APPROVED BY CLIENTS