[Tutor] Objects C++ vs Python

Izz ad-Din Ruhulessin izzaddin.ruhulessin at gmail.com
Thu Jun 9 15:53:25 CEST 2011


Compared to Python, I do not even consider C++ an object oriënted language.

2011/6/9 Ashwini Oruganti <msg.ashwini at gmail.com>

> On Thu, Jun 9, 2011 at 2:18 PM, Alan Gauld <alan.gauld at btinternet.com>wrote:
>
> C++ grew out of C so it has a lot of non OOP features. It is no
>> surprise to find therefore that its primitive types are related to
>> memory allocation and raw data rather than objects.
>>
>
>
>
>> No object is standard in OOP. It is a concept. It is the instantiated
>> encapsulation of data and function. How it is created varies between
>> language implementations.
>>
>
>
> Well, that clears it up!  I guess Python is a wider implementation of OOP,
> hence a wider use of objects. Thanks a lot.
>
>
>
>
> On Thu, Jun 9, 2011 at 3:32 PM, Walter Prins <wprins at gmail.com> wrote:
>
> Object Oriented code in e.g. a procedural language like C, which obviously
>> doesn't support the notion of objects explicitly in the language, although
>> then it's up to you to come up with conventions and infrastructure to
>> support the concept of object orientation in your program.
>
>
>
> Didn't know that!  It's interesting that  GObject is itself written in C,
> which is a procedural laguage..
>
>
>
>
> --
> Regards,
> Ashwini
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110609/a26a74be/attachment.html>


More information about the Tutor mailing list