O quer Dizer essa palavra Privada do Delphi quot;inherite
21/03/2003
0
Anonymous
Posts
21/03/2003
E_gama
21/03/2003
Marcelo Saviski
EX:
Você ten uma classe que herda de uma outra classe qualquer, andes de criala é nessessário que as classes antecessoras sejam ciadas:[/color:1b2323b6ed]
[b:1b2323b6ed]constructor[/b:1b2323b6ed] create(AOWer : TObject);
[b:1b2323b6ed]begin
inherited [/b:1b2323b6ed]Create(AOwer);
...
[b:1b2323b6ed]end;[/b:1b2323b6ed]
21/03/2003
Aroldo Zanela
If inherited is followed by the name of a member, it represents a normal method call or reference to a property or field--except that the search for the referenced member begins with the immediate ancestor of the enclosing method´s class. For example, when
inherited Create(...);
occurs in the definition of a method, it calls the inherited Create.
When inherited has no identifier after it, it refers to the inherited method with the same name as the enclosing method or, if the enclosing method is a message handler, to the inherited message handler for the same message. In this case, inherited takes no explicit parameters, but passes to the inherited method the same parameters with which the enclosing method was called. For example,
inherited;
occurs frequently in the implementation of constructors. It calls the inherited constructor with the same parameters that were passed to the descendant.
Clique aqui para fazer login e interagir na Comunidade :)