Answer to Question #285183 in C++ for Murifi

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.



1
Expert's answer
2022-01-06T02:00:54-0500




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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog