Solved

about the pascal syntax

Posted on 1998-11-09
5
182 Views
Last Modified: 2010-04-16
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
Comment
Question by:lewis_loo
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:scrapdog
ID: 1216046
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
 
LVL 4

Accepted Solution

by:
jack_p50 earned 0 total points
ID: 1216047
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
 
LVL 5

Expert Comment

by:scrapdog
ID: 1216048
So, are you trying to steal the point from me?
0
 
LVL 5

Expert Comment

by:scrapdog
ID: 1216049
:)
0
 
LVL 4

Expert Comment

by:jack_p50
ID: 1216050
I answered first. DO YOU REALLY NEED THIS BIG AMOUNG OF PTS?  ;)
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Knowing where your website is hosted is as important as the features you receive, the monthly fee, and the support you receive. Due diligence should be done when choosing your next hosting provider.
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question