Object Oriented Programming in Free Pascal

Free Pascal supports Object Oriened programming paradigm as well as structured programming, so that it is a multi paradigm language. In this example we will define TCar as a class (type). This class contains attributes (variables) and methods (procedures and functions). Before using this class, we need to declare and inistantiate objects (variables of class).…

How to create forms at run time in Free Pascal/Lazarus

When you add a new form in Lazarus project, it will be created automatically when application starts. If you want to create forms only when needed to reduce memory consumption, or to create many instances of that form during application execution, you can create it at run time using the following procedures: Suppose that your…