make fields/methods more clear
This commit is contained in:
parent
f6e9115e2c
commit
5aad2f7644
@ -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();
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user