Solved

about the pascal syntax

Posted on 1998-11-09
5
194 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

How many times a day do you open, acknowledge, or close an IT incident? What’s your process? Do you have a process depending on the incident, systems involved, and other factors? New Relic Alerts gives you options for how you interact with notifica…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

751 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