Using Inner Interfaces
Inner classes are frequently used to reduce project clutter and to reduce external exposure of classes with localized usefulness. Inner interfaces are defined in a similar fashion and while they
Inner classes are frequently used to reduce project clutter and to reduce external exposure of classes with localized usefulness. Inner interfaces are defined in a similar fashion and while they
A Hashmap is often used to store Keyword-Value pairs. The keywords are strings, so it is convenient to return a list of the keywords as an array of Strings. Fortunately,
I have very simple way to do this with just one line of code. Place the following line in the proper position, often the first line in LostFocus event (assuming
In the same scope, it’s not possible to have different values for default arguments. For example, this would be an error: void foo(int i = 0){ cout
Here is an example: class Shape {public: Shape() { }; virtual void draw() {};};class Circle : public Shape {private: int m_iRadius;public: Circle(int iRadius){ m_iRadius = iRadius; } virtual void draw()
Static data members must be explicitly defined exclusively in one source file. Here’s an example of a header file, such as MyClass.h: class MyClass { public: static int x; //
The ++ operator can be used in prefix and postfix. When it is used as a preifx , its value is evaluated first, then the statement is executed. For example:
Global variables should never be used with recursion. It leads to stack overflow and program crash. Recursion works well only if it is in a self contained unit, using local
Frequently the date format is mistakenly used in a SQL query of MS ACCESS. For example, when you want to make a query get records from May 1, 2000 in