IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
KB
   ► KB ► > Class..Object Posts  Print This     

Class..Object Posts

"Class..Object" Knowledge Base Posts

More...
  KB Article    

Mike Prestwood
1. Delphi Class..Object (class..end..Create)

Declare your class in the Interface section. Then implement the class in the Implementation section.

Posted to KB Topic: OOP
12 years ago, and updated 11 years ago
(4 Comments , last by John_V._Townsen)

Code

KB Post
Nothing New Since Your Last Visit
18851
Hits

Pascal and Delphi Coding

Mike Prestwood
2. Delphi Prism Class..Object (class..end..new)

Declare your class in the Interface section. Then implement the class in the Implementation section. To create an object instance, use the New keyword. Optionally, you can use Create for backword compatibility with Delphi if you turn it on in the compatibility options. Since Prism does have a garbage collector, you do not have to free the object. If you need to free either unmanaged resources or resources where "timing" is important, implement IDisposable and take control of freeing the object yourself using Dispose.

Posted to KB Topic: OOP
12 years ago, and updated 11 years ago
(1 Comments , last by mtiede )

Code

Article
Nothing New Since Your Last Visit
14584
Hits

Delphi Prism

Mike Prestwood
3. ASP Classic Class..Object (Class..Set..New)

Ultra-primitive (no inheritance) but useful and encourages you to think and design using objects.

Posted to KB Topic: OOP
12 years ago, and updated 11 years ago
(2 Comments , last by Ganes.J )

Code

KB Post
Nothing New Since Your Last Visit
15942
Hits

ASP Classic Coding

Mike Prestwood
4. VB.Net Member Property (property, get, set)

VB.Net uses a special property keyword along with special get and set methods to both get and set the values of properties. For a read-only property, leave out the set method. The value keyword is used to refer to the member field. Properties can make use of any of the access modifiers (private, protected, etc).

My preference for VB.Net code is to start member fields with "F" ("FName" in our example) and drop the "F" with properties that manage member fields ("Name" in our example).

Posted to KB Topic: OOP
12 years ago, and updated 11 years ago

Code

KB Post
Nothing New Since Your Last Visit
21529
Hits

VB.Net Language

Mike Prestwood
5. VB.Net Class..Object (Class..End Class..New)

Declare and implement VB.Net classes after the form class or in their own .vb files. Unlike VB Classic, you can have more than one class in a .vb class file (VB classic uses .cls files for each class).

Posted to KB Topic: OOP
12 years ago, and updated 11 years ago

Code

KB Post
Nothing New Since Your Last Visit
15130
Hits

VB.Net Language
More...


Icon Legend:
Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


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