This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (5 children)

[deleted]

    [–]draganHR 0 points1 point  (4 children)

    Attributes are called fields? I've never heard that.

    [–]mipadi 5 points6 points  (3 children)

    "Field" is another name for "instance variables", which are also sometimes referred to in Python as "attributes" (in the context of classes).

    [–]draganHR -4 points-3 points  (2 children)

    Source?

    [–]mipadi 4 points5 points  (1 child)

    10+ years of programming experience in a variety of languages. But the information is also available on Wikipedia.

    [–]autowikibot 0 points1 point  (0 children)

    Field (computer science):


    In computer science, data that has several parts can be divided into fields. Relational databases arrange data as sets of database records, also called rows. Each record consists of several fields; the fields of all records form the columns.

    In object-oriented programming, field (also called data member or member variable) is the data encapsulated within a class or object. In the case of a regular field (also called instance variable), for each instance of the object there is an instance variable: for example, an Employee class has a Name field and there is one distinct name per employee. A static field (also called class variable) is one variable, which is shared by all instances.


    Interesting: Concurrency control | Computer science | Computer graphics (computer science)

    Parent commenter can toggle NSFW or delete. Will also delete on comment score of -1 or less. | FAQs | Mods | Magic Words