osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

An "Object" class?


On Wed, Aug 28, 2019 at 4:21 AM Cristian Cocos <cristi at ieee.org> wrote:
>
> Thank you! What would be the names of the *class *class, and of the *function
> *class please?

The "class" class is called "type" - or rather, when you use the
"class" keyword, you are creating a subclass of "type". There is no
built-in name for the type of functions, and you usually don't care;
they're simply callable objects, and any object can be made callable
by giving it an appropriate method.

ChrisA