First-class Citizen - Second and Third Class Objects

Second and Third Class Objects

Raphael Finkel offers definitions of second and third class objects (or, as he calls them, values). However, his definition of "first class object" is contrary to other authors': specifically, he does not require run-time constructability, so he would consider C functions to be first-class.

Manipulation First Second Third
Pass value as a parameter yes yes no
Return value from a procedure yes no no
Assign value into a variable yes no no

Read more about this topic:  First-class Citizen

Famous quotes containing the words class and/or objects:

    History is full, down to this day, of the imbecility of kings and governors. They are a class of persons much to be pitied, for they know not what they should do.
    Ralph Waldo Emerson (1803–1882)

    I stand in the sunny noon of life. Objects no longer glitter in the dews of morning, neither are yet softened by the shadows of evening.
    Margaret Fuller (1810–1850)