IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
KB
   ► KB ► > Member Method Posts  Print This     

Member Method Posts

"Member Method" Knowledge Base Posts

More...
  KB Article    

Mike Prestwood
1. Delphi Abstraction (abstract, override)

Delphi for Win32 supports abstract class members using the abstract keyword. You can even instantiate instances of a class that contains abstract members. Then you override each abstract member in a descendant class with Override. Delphi does not support setting an entire class as abstract. You can create an abstract class (a class with one or more abstract methods), but there is no way to tell the compiler to not allow the instantiation of the abstract class. Delphi does not support abstract member properties directly. To implement an abstract properity, make use of abstract methods. That is, you can read a GetPropertyX abstract function and write to a SetPropertyX abstract procedure. In effect, creating  an abstract property.

Posted to KB Topic: OOP
13 years ago, and updated 10 years ago
(5 Comments , last by sophie.e )

Code

Article
Nothing New Since Your Last Visit
26728
Hits

Pascal and Delphi Coding

Mike Prestwood
2. Member Method

Also known as a Class Method.

A code routine that belongs to the class or an object instance (an instance of the class). Methods that belong to the class are called class methods or static methods. Methods that belong to an object instance are called instance methods, or simply methods.

When a method returns a value, it is a function method. When no value is returned (or void), it is a procedure method.

Methods frequently use method parameters to transfer data. When one object instance calls another object instance using a method with parameters, you call that messaging.

Posted to KB Topic: Object Orientation (OO)
12 years ago, and updated 12 years ago
(1 Comments , last by Andrew.S2 )

Definition
Nothing New Since Your Last Visit
10140
Hits

Coding & OO

Mike Prestwood
3. C# Member Method

In C# you can set the visibility of a member field to any visibility: private, protected, public, internal or protected internal. You can intialize a member field with a default when declared. If you set the member field value in your constructor, it will override the default value. Finally, you can use the static modifier (no instance required) and readonly modifier (similar to a constant).

Posted to KB Topic: OOP
13 years ago, and updated 12 years ago
(2 Comments , last by Lorivers.H )

Code

Article
Nothing New Since Your Last Visit
14380
Hits

C# (Visual C# & VS.Net)

Mike Prestwood
4. VB.Net Abstraction (MustInherit, MustOverride, Overrides)

VB.Net supports abstract class members and abstract classes using the MustInherit and MustOverride modifiers.An abstract class is indicated with a MustInherit modifier and is a class with one or more abstract members and you cannot instantiate an abstract class. However, you can have additional implemented methods and properties. An abstract member is either a method (implicitly virtual), property, indexer, or event in an abstract class. You can add abstract members ONLY to abstract classes using the MustOverride keyword. Then you override it in a descendant class with Overrides.

Posted to KB Topic: OOP
13 years ago, and updated 12 years ago
(1 Comments , last by charlos.j )

Code

Article
Nothing New Since Your Last Visit
25603
Hits

VB.Net Language

Mike Prestwood
5. Delphi Prism Abstraction (abstract, override)

Prism supports abstract class members and abstract classes using the abstract keyword. An abstract class is a class with one or more abstract members and you cannot instantiate an abstract class. However, you can have additional implemented methods and properties. An abstract member is either a method (method, procedure, or function), a property, or an event in an abstract class. You can add abstract members ONLY to abstract classes using the abstract keyword. Alternatively, you can use the empty keyword in place of abstract if you wish to instantiate the abstract class.

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

Code

Article
Nothing New Since Your Last Visit
13804
Hits

Delphi Prism
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-2021 Prestwood IT Solutions.   [Security & Privacy]