Object Oriented programming in Delphi. Information on classes, objects, RTTI etc.
Return a Property Value From a Nil Delphi Object Wthout an Access Violation
Most Delphi developers when they think of interfaces they think of COM programming. However, interfaces are just an OOP feature of the language - they are not tied to COM specifically.
Interfaces can be defined and implemented in a Delphi application without touching COM at all.
Have you ever created (and implemented) your own interface and? Why? Share with us some real-world examples in usin…
If you are up to creating a rock solid (OOP driven) Delphi application in a way that your code is maintainable, reusable, and flexible the OOP nature of Delphi will help you drive the first 70% of your route. Defining interfaces and implementing them will help with the remaining 30%.
"Any given program will expand to fill all the available memory!" Is Murphy right? This article provides some common pitfalls and best practices for writing non - memory leaking Delphi code.
Delphi provided Runtime Type Information (RTTI) more than a decade ago. Yet even today many developers aren't fully aware of its risks and benefits. This article provides an overview of the RTTI usage in Delphi for Win32.
Class procedures/functions. What they are and how to find a practical use for them.
The differences between a component Owner and its Parent - briefly explained.
Exploring design patterns in real programming, focusing on implementation issues in Delphi.
In Win32 Delphi OOP, only one method can be assigned as a handler to a component's event. In Delphi for .Net, multiple event handlers can be bound to the same event. Let's see how to build a Win32 Delphi object that maintains a list of the methods its event(s) is handled by - thus creating a simulation of multicast event handling.
A class property is a property you can access without actually creating an instance of a class. While (Win32) Delphi enables you to create class (static) methods (function or procedure), you cannot mark a property of a class to be a class (static) property. False. You can! Let's see how to simulate class properties using typed constants.
"The name of a component plays a fundamental role in Delphi, but some of the features behind this property are far from well-known."
Refactoring is the art of transforming existing code to make it more maintainable and reliable without changing functionality. The techniques used also encapsulate programming best practices. We examine some of the more useful methods
The text includes wizard and property sheet frameworks that can share view forms. It also discusses Delphi's interface and Assert features.