LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] OT : Differance between a class and a Struct.

[ILUG] OT : Differance between a class and a Struct.

Justin Mason jm at jmason.org
Thu Jan 22 17:31:11 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Fergal Moran writes:
>On Thu, 22 Jan 2004, Wesley Darlington wrote:
>
>> On Thu, Jan 22, 2004 at 09:37:10AM +0000, Jason Corcoran wrote:
>> > ...the only difference was that the classes 
>> > constructor is public.
>> > Surely there is more of a difference than this. Any Comments?
>> 
>> That's the only difference. :-)
>> 
>> Wesley.
>Not quite - a class can have a private constructor the difference is
>that in a class, members are private by default; in a struct they
>are public.

Can you subclass a struct?  I didn't think so.

Also another difference: classes are not supported in ANSI C ;)

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFAEAjfQTcbUG5Y7woRAm6pAKCNvGv867rwitq9MPjed8r4Win5UQCgguNk
47jSWLwzmGpBS3ZHyiGdM6E=
=OIwv
-----END PGP SIGNATURE-----




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell