You are on page 1of 1

Programming Ethics Naming Conventions 1- Class Name Always in sentense Case class class class class MuhammadHassanSubhani { } Book

{ } KfcBill { } PcbaPics { }

2- Variable names - firt letter small, Followed by Sentensecase int muhammadHassanSubani; int pcbaPics; int kfcBill; 3- Function name ( Same as Variables) int pcbaPics() int kfcBill() 4- Constants (Always in upper case) const float PI=1.2 5- Indentation class Book {

} if (a>b ) {

} while (a>b) {

} int add(){ }

You might also like