[Gambas-user] Class names

Bruce Steers bsteers4 at gmail.com
Fri Apr 28 17:39:47 CEST 2023

Your ami class can have a "property" called Connection.

Making a class called Connection will conflict/override an existing class
of the same name.

But the class does not need to be called Connection if the property name is.

You can create a class called AmiConnection.class

Then in Ami.class

Property Connection as AmiConnection

For example.

On Fri, 28 Apr 2023, 14:22 Mayost Sharon, <sharon at 455.co.il> wrote:

> Hello
> Is it possible to give a name to the class even if there is a class with
> such a name in GAMBAS
> For example:
> If I want to create a class called:
> Ami
> and another class named
> Connection
> Because I want to reach:
> Ami.Connection
> My connection is a type of TCP communication
> The Connection class is not a Database Connection
> Could it conflict with GAMBAS Connection?
> Or first it is better to give names that are not in GAMBAS
> Sorry, hope the English translation went well
> Thank you
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230428/6aaf3b61/attachment.htm>

More information about the User mailing list