Posts

Showing posts with the label Is

Delphi Classes and Objects

Classes in Delphi A Class consists of fields, methods and properties which defines character and behavior of an object. Instances of a Class are called as Objects and fields, methods are called as class members. -> A Field is essentially a variable that  is part of an object. -> Methods are procedures or functions that associated with a class and which operates on Class Objects. -> Property is an interface to data associated with an Object. A property have access specifiers which defines how the data will be read and modified. Objects are dynamically allocated blocks of memory whose structure is determined by their Class type. Each object has a unique copy of every field defined in the class, but all instances of a class share the same methods. Objects are created and destroyed by special methods called Constructor and Destructor . A variable of a Class is actually a pointer that references an object. Hence more than one variable can re...