Shoppe-Manne/Development Guidelines.md

30 lines
444 B
Markdown
Raw Normal View History

2019-05-20 23:23:26 +00:00
1.No "using namespace std;"
2.Clearly declare "private" inside of class. For example:
2019-05-20 23:27:47 +00:00
use
```c++
class item{
2019-05-20 23:23:26 +00:00
private:
int price;
public:
getPrice();
}
2019-05-20 23:27:47 +00:00
```
2019-05-20 23:23:26 +00:00
2019-05-20 23:27:47 +00:00
instead of class
```c++
class item{
int price;
2019-05-20 23:23:26 +00:00
public:
2019-05-20 23:27:47 +00:00
getPrice();
2019-05-20 23:23:26 +00:00
}
2019-05-20 23:27:47 +00:00
```
2019-05-20 23:23:26 +00:00
3.Declare inheritance type(public, private, protected) when using inheritance.
4.If not finished with code, add a TODO as comments.
5.Add comments to explain what you want to do.