OOPS Programming Languages Tips
Modern OOPs Programming languages require you to put less effort in programming so that you can concentrate on the overall design. Here are some tips on object-oriented programming that you should remember:
Always use nouns for class namesÂ
Noun names and phrases help other programmers to correctly associate the classes that you have created. It makes reading and understanding the program easier. Take the example of a class- âcustomer{}â. An object âharryâ of class âcustomerâ can be defined as âcustomer harryâ. Â
Use verbs for function/method namesÂ
Like noun class names, using verbs for functions makes the whole program fit together. So a class with the name âcustomer{}â can have functions addcustomer(), deletecustomer(), editcustomer() and so on.Â
Avoid too many conditional statements
With a lot of conditional statement comes a lot of confusion. Reduce heaps of nested if-else and switch statements with dynamic functions/methods. Comparing 10 integers can generate 100 lines of code. Instead, a 6-liner function can replace those 100 lines of procedural programming.
For more, read here-Â http://itservicestalk.com/programming-language/5-expert-tips-to-make-oops-programming-languages-easier/













