2020-05-10 16:07:27 +02:00

16 lines
368 B
C++

#include "car.h"
#include <cstring>
int main() {
// create a new car and store it in the variable 'a'
// The constructor requires manufacturer and model to be specified.
car a("Benz", "Velo");
// do the same for a second car
car b("Ford", "Model T");
// use a function of the car class to print out the information
a.print_info();
b.print_info();
}