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:
|
2.Clearly declare "private" inside of class. For example:
|
||||||
|
|
||||||
use class item{
|
use
|
||||||
|
```c++
|
||||||
|
class item{
|
||||||
private:
|
private:
|
||||||
int price;
|
int price;
|
||||||
public:
|
public:
|
||||||
getPrice();
|
getPrice();
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
instead of class item{
|
instead of class
|
||||||
int price
|
|
||||||
|
```c++
|
||||||
|
class item{
|
||||||
|
int price;
|
||||||
public:
|
public:
|
||||||
getprice();
|
getPrice();
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
3.Declare inheritance type(public, private, protected) when using inheritance.
|
3.Declare inheritance type(public, private, protected) when using inheritance.
|
||||||
|
Loading…
Reference in New Issue
Block a user