Browse DevX
Sign up for e-mail newsletters from DevX

Search the Tips

Classes - Page 2

21-40 of 44     Previous     Next
Extending the Existing CLR Type
by Naresh Rohra
With .NET 3.0, you can extend any existing CLR type by adding one or more public methods to it—without recompiling the library
Potential Problems with Friend Classes and Functions in C++
by Alexander Ocher
In C++, it is possible to declare as a friend a class which was not declared anywhere else. This behavior is specified in the C++ Standard (11.4), but it can lead to problems if used incorrectly.
Override Base Methods in a Form
by Jayadev D
If one class is inheriting from another class, a quick, easy way to find the available overrides is through .NET's IntelliSense.
Object Functions in Use
by Arman Sahakyan
You can use an object function to find the first occurence of a string started by a given symbol in a vector.
Modifying Member Variables Inside const Member Functions
by Amit Gupta
Declaring a member variable as mutable is not the only way to mark it as modifiable within a constant member function.
Class Members that Are Class Objects Must Be Objects of Previously Declared Classes
by Neelam Kalra
Find out why class members that are class objects must be objects of previously declared classes.
Build a Reusable AJAX Class
by Matthew Brichacek
Building a reusable AJAX class can help you eliminate some of the headaches when you're starting out.
Avoid Conflict when Using Dates
by Mamta Murthy
Using a Date class with both java.util and java.sql running can create conflict. Learn how to avoid this.
Prepare a Class Diagram in Visio Using Reverse Engineering
by Selva Kumari
Find out how to prepare a class diagram in Visio using reverse engineering.
Using Reflection to Execute Class Methods at Runtime
by MS Sridhar
Find out how to use reflection to execute class methods at runtime.
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.
21-40 of 44     Previous     Next
Thanks for your registration, follow us on our social networks to keep up-to-date