OOPS again...tired of managing hundreds of lines of codes in C. Or find all those functions with a little difference and using cut-paste in programming. Yes, this is what Object-Oriented programming is all about. you will find programming and infact program design so easy with it that you will never turn back to other methodology
Check out My seminar on Object-Oriented Development
I do also have a brain storming exercise on C++. A question paper on C++ & OOPS. The paper (C++ &OOPS Contest-2001) organised by Computer Science Students' Council(COSSCO), B. I. E. T., Jhansi. I grabbed first position
Click here to check it out
Here is an article by myself that will definitely help everybody to improve C++ Programming skills. The article was published in the monthly magazine of COSSCO, BIET Jhansi during session 2000-01
C++ is supposed, and quite often used, as a mere extension of C but a good C++ programmer can exploit the facilities provided by C++ in a way that can minimize the programming and lead to a hassle free programming-
Before going to C++ tips it is quite beneficial to go through the C tips.
1. Be suspicious of non-const reference arguments; if you want the function to modify its arguments, use pointers and value return instead.
2. Use const reference arguments when you need to minimize copying of arguments.
3. Use const extensively and consistently.
4. Use overloading when functions perform conceptually the same task on different types.
5. when considering the use of a pointer to function, consider whether a virtual function or a template would a better alternative.
6. Use self-made header files to represent interfaces and to empasize logical structure.
7. Avoid non-inline function definitions in headers.
8. Distinguish between users’ interface and implementers’ interface.
9. Represent concepts as classes.
10. Make a function member only if it needs access to the representation.
11. If a constructor acquires memory(resources), its class needs a destructor .
12. If a class has a pointer member, it needs copy operations (copy constructor and copy assignment).
13. Use enumerations when you need integer constants in a class.
14. Be cautious about introducing implicit conversions by overloading operators.
15. Use abstract classes to minimize interfaces and minimize recompilation of user code.
16. Use virtual functions to allow new implementations to be added without affecting user code.
17. A class with virtual functions should have a destructor.
18. Use exceptions for error handling.
19. Don’t declare data members protected.
20. if a class defines operator delete( ), it should have a virtual destructor.
21. don’t call virtual functions during construction or destruction. -->