Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Public Enums in Class
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ivar  
View profile  
 More options Aug 10 2012, 6:14 am
Newsgroups: comp.lang.basic.visual.misc
From: "Ivar" <ivar.ekstromer...@ntlworld.com>
Date: Fri, 10 Aug 2012 11:14:54 +0100
Local: Fri, Aug 10 2012 6:14 am
Subject: Public Enums in Class
Hi All

I've just been looking through an old project of mine and had the following
thought.
I have a class object with properties, methods etc
I have a Collection Object to which I add\Delete what ever my class objects
to
I notice in the class code there are public enums Which help a lot when
writing code to change properties etc
I was wondering, If I load 100 class objects to my collection do I have 100
public enums or just the one
I will put the enums in to the collection class
Just wanting to know if the app had to remember 100 enums or just the one

Ivar


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Deanna Earley  
View profile  
 More options Aug 10 2012, 6:38 am
Newsgroups: comp.lang.basic.visual.misc
From: Deanna Earley <dee.ear...@icode.co.uk>
Date: Fri, 10 Aug 2012 11:38:21 +0100
Local: Fri, Aug 10 2012 6:38 am
Subject: Re: Public Enums in Class
On 10/08/2012 11:14, Ivar wrote:

> Hi All

> I've just been looking through an old project of mine and had the
> following thought.
> I have a class object with properties, methods etc
> I have a Collection Object to which I add\Delete what ever my class
> objects to
> I notice in the class code there are public enums Which help a lot when
> writing code to change properties etc
> I was wondering, If I load 100 class objects to my collection do I have
> 100 public enums or just the one
> I will put the enums in to the collection class
> Just wanting to know if the app had to remember 100 enums or just the one

An Enum value is pretty much just a constant so doesn't actually use any
space.
Besides, only data (variables) is duplicated for each class instance.
The code and definition is shared.

--
Deanna Earley (dee.ear...@icode.co.uk)
i-Catcher Development Team
http://www.icode.co.uk/icatcher/

iCode Systems

(Replies direct to my email address will be ignored. Please reply to the
group.)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »