Updated Classes and Structs (markdown) authored by williamfgc's avatar williamfgc
...@@ -17,13 +17,14 @@ ...@@ -17,13 +17,14 @@
{ {
public: public:
std::string Name; std::string Name;
```
* _Do_ * _Do_
```cpp ```cpp
class Transport class Transport
{ {
public: public:
std::string m_Name; std::string m_Name;
```
3. <strong>Structs:</strong> reserve structs for public member variables only, Structs should not have member functions, derived classes (inheritance), or private members. Structs will be initialized with an upper case letter and member variables won't use hungarian notation (```m_```) as in classes. 3. <strong>Structs:</strong> reserve structs for public member variables only, Structs should not have member functions, derived classes (inheritance), or private members. Structs will be initialized with an upper case letter and member variables won't use hungarian notation (```m_```) as in classes.
... ...
......