[Tutor] Objects C++ vs Python
Ashwini Oruganti
msg.ashwini at gmail.com
Thu Jun 9 08:33:36 CEST 2011
That clears it up to an extent.
On Thu, Jun 9, 2011 at 11:31 AM, Steve Willoughby <steve at alchemy.com> wrote:
> The value 5 is an integer-class object.
But now what is "Integer-class"? Isn't integer a data type? I mean there is
no concept of "classes" in C, and yet in C, we can write
int x = 5;
Will "5", then be called an integer class object?
What exactly is a class now? I thought is a collection of variables and (or)
associated functions. Am I missing something here?
--
Regards,
Ashwini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110609/9a7bfb3b/attachment.html>
More information about the Tutor
mailing list