forked from AP-CT/Shoppe-Manne
fixed dev guidelines
This commit is contained in:
parent
e715879f43
commit
0c48596130
@ -2,18 +2,25 @@
|
||||
|
||||
2.Clearly declare "private" inside of class. For example:
|
||||
|
||||
use class item{
|
||||
use
|
||||
```c++
|
||||
class item{
|
||||
private:
|
||||
int price;
|
||||
public:
|
||||
getPrice();
|
||||
}
|
||||
```
|
||||
|
||||
instead of class item{
|
||||
int price
|
||||
instead of class
|
||||
|
||||
```c++
|
||||
class item{
|
||||
int price;
|
||||
public:
|
||||
getprice();
|
||||
getPrice();
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
3.Declare inheritance type(public, private, protected) when using inheritance.
|
||||
|
Loading…
Reference in New Issue
Block a user