python:about_python:about_python_iii
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
python:about_python:about_python_iii [2014/02/28 22:26] – [Object oriented concepts] mithat | python:about_python:about_python_iii [2014/02/28 22:35] – mithat | ||
---|---|---|---|
Line 37: | Line 37: | ||
There is another kind of object orientation called **prototype-based object orientation** or **prototype-based programming**. This is the kind of object-orientation used in JavaScript and some other languages. I will leave it you to get your Google on and learn more about prototype-based object orientation. | There is another kind of object orientation called **prototype-based object orientation** or **prototype-based programming**. This is the kind of object-orientation used in JavaScript and some other languages. I will leave it you to get your Google on and learn more about prototype-based object orientation. | ||
- | |||
- | Python supports both class-based and prototype-based object orientation.((C++ and Java support only class-based object orientation, | ||
==== Python objects ==== | ==== Python objects ==== | ||
+ | |||
+ | Python inherently class-based but lets you do prototype-based object orientation as well.((C++, Java, C#, and PHP support only class-based object orientation; | ||
We will next define a class in Python and instantiate and use some objects. | We will next define a class in Python and instantiate and use some objects. |
python/about_python/about_python_iii.txt · Last modified: 2017/12/06 01:57 by mithat