Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > Java > Classes

Classes - Page 5

81-100 of 417     Previous     Next
Obtain a Regional Decimal Character without an API
by Gianfranco Callino
Use this function to read a number decimal symbol from regional ...
Iterate Control Arrays Without Error
by Guy Dafny
Control arrays are odd beasts in that they can have missing elements. The simplest way to iterate a control array uses this ...
Setting the Description of an Add-In
by Francesco Balena
When you use the Add-Ins project template to build your own add-ins, the description of the add-in appearing in the Add-Ins Manager window is always "My Addin." It isn't immediately clear how you can ...
<fstream> Open Modes
by Danny Kalev
The library defines the following open modes and file ...
CQueue - a class module to implement First-In-First-Out (queue) structures
by Francesco Balena
-------------------------------------------------- The CQUEUE class Dim qu As New CQueue enqueue to items to the queue qu.Enqueue 1234 qu.Enqueue 5678 display number of elements in the queue Debug.Print "Count = " & qu.Count peek at the element about to be read Debug.Print "Peek = " & qu.
CStack - a class module for implementing Last-In-First-Out (stack) structures
by Francesco Balena
-------------------------------------------------- The CSTACK class Usage: Dim st As New CStack push two values on the stack st.Push 1234 st.Push 4567 display number of elements in the stack Debug.Print "Count = " & st.Count peek at the element on top of stack Debug.Print "Peek = " & st.
HashTable - a class module for storing (key,value) pairs
by Francesco Balena
---------------------------------------------- HASHTABLE class module This class implements a hashtable, a structure that offers many of the features of a collectior or dictionary, and is often even faster than the built-in collection. NOTE: must make Item the default member, using the ...
LinkedList - a class module to store list of values
by Francesco Balena
------------------------------------------------- LINKED LIST class module This class implements a linked list structure, where you can store values (appending them after the last element or inserting them at given indexes), remove them, and visit them using recordset-like methods such as ...
Testing a Business Rule Should Not Have Any Side Effects
by Patrick Marshall
Testing a business rule should have no side effects. Avoid err.raise and msgboxes inside business rule tests.
Add Testing Code to a Class With Static Inner Classes
by Shantanu Garg
Static inner classes are pretty simple in concept and implementation.
Private Access
by Tareq Shaheen
This tip clarifies the meaning of
A template for building collection class modules
by Francesco Balena
The following is a template for building collection class modules in a very quick and effective way. Copy-and-paste this code into Notepad, that save it to a file named "COLLECTION CLASS.CLS" in the \TEMPLATE\CLASSES subdirectory under the main VB6 directory: VERSION 1.0 CLASS BEGIN
Accessing a Private Data Member from a Different Object
by Danny Kalev
Different objects of the same class can access each other's members, even if these members are private. For ...
Accessing Class Members From the Static Member Function
by Rajesh Chathapuram
When a class has Thread entry functions, it is usually declared as static member functions of the class as in the example ...
How to Use an Abstract Class and Define Its Abstract Methods at Instantiation
by Ngo Minh
Suppose you have an abstract class MyAbstractClass with an abstract method ...
Why Static Methods Can Only Make Calls to Static Methods
by Shantanu Garg
Write the following code, compile it, then try to run ...
Using Memset On Class Objects
by Nitin Kumar
It's common practice in C, to do a memset on structures, in order to initialize all member variables to some default value, usually NULL. Similarly, you can use memset to initialize class objects.
Structs and Unions
by C.S. Niranjan
It is common knowledge that the only difference between a struct and a union in C is that all elements of a union share the same memory location but the elements of struct do not. In C++, a ...
Exception Handling, Inheritance and the Need For Strict Rules
by Anil Nair
Java has some strict rules for exception handling when it comes to inheritance and overriding of methods.
Forward Declaration of Classes and Structs
by Danny Kalev
You can use the keywords class and struct in forward declarations interchangeably. For ...
81-100 of 417     Previous     Next
Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date