make fields/methods more clear

This commit is contained in:
Timo Hocker 2020-05-04 19:24:16 +02:00
parent f6e9115e2c
commit 5aad2f7644

View File

@ -24,11 +24,11 @@ class car
// define the visibility of the following fields and methods
// in this case everything is public since visibility is a topic in future lessons
public:
// define two strings, manufacturer and model
// define two fields, manufacturer and model
std::string manufacturer;
std::string model;
// define a function that will print out information
// define a method that will print out information
void print_info();
};