methods

can anyone explain to me what is a method... in visual language programming
aerokevsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Mohammed NasmanConnect With a Mentor Software DeveloperCommented:
Hello

  Read this page and you will have some info about methods

http://www.delphi-dolphin.com/tutorials.php?119

Mohammed
0
 
MaxSCZCommented:
Hi,

method = function or procedure of a object

bye Max
0
 
geobulCommented:
Hi,
A method is a procedure or function associated with a class. A call to a method specifies the object (or, if it is a class method, the class) that the method should operate on.

Declaration:

type
  TMyClass = class(TObject)
     ...
    procedure DoSomething;
     ...
  end;

var
  MyObject : TMyClass;

A defining declaration for DoSomething must occur later in the module:

procedure TMyClass.DoSomething;
begin
 ...
end;

Usage:

MyObject := TMyClass.Create;
...
MyObject.DoSomething;
...
MyObject.Free;


Regards, Geo
0
 
Mohammed NasmanSoftware DeveloperCommented:
Woow, you gave me alots of points ;)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.