IT SOLUTIONS
Your full service technology partner! 
+Expand
   ► KBTo/From GuidesCorel Paradox  Print This     

Constructor (Corel Paradox and C++ Cross Reference Guide)

By Mike Prestwood

Corel Paradox versus C++: A side by side comparison between Corel Paradox and C++.

 
OOP Details
 

More object oriented (OO) stuff.

Constructor

[Other Languages] 

General Info: Class Constructor

Constructors are called when you instantiate an object from a class. This is where you can initialize variables and put code you wish executed each time the class is created. When you initially set the member fields and properties of an object, you are initializing the state of the object. The state of an object is the values of all it's member fields and properties at a given time.

Languages Focus

What is the syntax? Can you overload constructors? Is a special method name reserved for constructors?

Corel Paradox:  "Constructors" Not Supported
C++:  "Constructors" Use Class name

A member function with the same name as the class.

Syntax Example:  
class X {
public:
X(); // constructor for class X
};












Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


©1995-2025 Prestwood IT Solutions.   [Security & Privacy]