Answer to Question #285180 in C++ for Dammex

Question #285180

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-06T05:38:34-0500
#include<iostream>



using namespace std;



class License {
public:
    int drivingLicenseNumber;
    string name;
    string addres;
    Constructor1(string a) {
        name = a;
    }
    Constructor2(string b) {
        address = b;
    }
    Constructor3(int c) {
        drivingLicenseNumber = c;
    }
};



int main() {
    
    
    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