• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

about the pascal syntax

Can you explain for me in simple English what do this mean about?

Construtor TNumField.Init(Fx,Fy,FLen :Integer;FName:string;FMin,FMax:Longint);  

{What Constructor Function in this Program, Can you explain more about "Constructor"?}
begin
  inherited Init(Fx,Fy,FLen,FName);
  {What Inherited function in this Program, Can you explain more about "Inherited"}
  Value:=0;
  Min:=FMin;
  Max:=FMax;
end;
0
lewis_loo
Asked:
lewis_loo
  • 3
  • 2
1 Solution
 
scrapdogCommented:
Constructor is a function that when called creates a new object (an instance of that class).

Inherited calls the Init procedure (in this example) in an ancestor class.
0
 
jack_p50Commented:
You have type structure like this
TSomething=class(Somethingelse);

Constructor is function that creates the Something:Tsomething.

inherited calls constructor of Somethingelse
and then you initialize or re-initialize vars of something.
Something have same vars and methods as somethingelse and some special vars/methods. Ask if you don't understand.
0
 
scrapdogCommented:
So, are you trying to steal the point from me?
0
 
scrapdogCommented:
:)
0
 
jack_p50Commented:
I answered first. DO YOU REALLY NEED THIS BIG AMOUNG OF PTS?  ;)
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now