Answer to Question #286076 in C++ for Khaleefah

Question #286076

Q3. 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-09T10:43:51-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