Login | Register   
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

Classes - Page 2

21-40 of 408     Previous     Next
Write a Standalone Java Application Without a Main Method
by Sachin Kainth
Normally, you need a main method in a Java class if you want to run that class from the command line. However, there is a little trick that allows you to run one without a main method.
Structs with Care: Boxing
by Navin Varma
This tip helps guide you in deciding whether an object should be a class or a stuct.
Call a Private Method of a Class
by Ganesh Kumar
This tip shows you how to cheat the cheat the compiler and expose private information.
Use the Robot Class for Automatic Keyboard and Mouse Control
by Kameswari Sreedharan
The code uses the Robot class to give you automatic keyboard and mouse control.
Always Declare a Polymorphic Class' Copy Constructor as Private
by Furqan Shaikh
Always declare a polymorphic class' copy constructor as private—this becomes important when you want to use a class in a container class for cloning
Problem Instantiating a Class Instance in Its Own Constructor
by Saurabh Ramya
Find out how to workaround the problem that arises when you instantiate a class instance in its own constructor.
Use Reflection to Find Dynamic Class Information
by Jaya Nehru Kumar
Use the code in this tip to find informtation about a dynamic class.
Converting One Class Type to a Different Class Type
by Saurabh Ramya
Learn about two different methods you can use to convert objects between two different class types.
Stop Initializing and Assigning Values to the Base Class's Data Members
by Saurabh Ramya
Sick of initialzing and assigning values to the base class's data members? Absolve yourself of this responsibility by overloading the copy constructor and the assignment operator in the derived class.
Executing a Subprocess
by Lundholm Per
When executing a subprocess in Java, remember to read both the stdout and stderr from the process or it may be blocked.
Detect an Operator Overloading a Class
by Vishakha Vaidya
Define the operator globally so that it accepts all user defined types in order to detect an operator overloading a class without the source for the class.
Restrict the Types of Template Argument for a Template Class
by Saurabh Ramya
Find out how to use the Forwards template declaration to restrict the types of template arguments for a template class.
Tracking Elapsed Time
by Andrew Ling
This C++ class tracks elapsed time. The mark() method is called at a given point and the following methods retrieve the elapsed time between points, the total time, or the average time.
Use Local Classes to Implement Nested Functions in C++
by Saurabh Ramya
Find out how you can use local classes to simulate the effects of nested functions.
Use java.util.Observable to Monitor Object State changes
by Amit Tuli
Use the class java.util.Observable to monitor Java objects for any change in their states.
Using Vectors
by Sophy Pal
A vector is basically an array that stores its elements dynamically. This means that it can grow infinitely or until you have no more memory.
Getting Around the Java Compiler's 64K Limitation
by Amit Jain
Find out how you can use inheritance to work around the Java compiler's 64K limitation.
Use C#'s Reflection to Retrieve Application Information
by Bradley L. Jones
C#'s Reflection capability allows you to reflect a class upon itself to determine the methods or properties it contains.
Static Variable Declarations in Header Files
by Selva Somasundaram
Learn how to avoid multiple instances of static variables with this code.
Initializing Class Members
by Rahul Gupta
21-40 of 408     Previous     Next
Sitemap