Objects: Difference between revisions

From Computer Science Wiki
Line 5: Line 5:


== Example ==
== Example ==
In the image below, we see an example of the relationship between an object and class. An object is derived from a class. An object is made from a class. You can think of a class as a blueprint, and an object created from that blueprint.


[[File:Object and class.jpg]]
[[File:Object and class.jpg]]

Revision as of 05:43, 29 July 2017

Programming basics[1]

In the class-based object-oriented programming paradigm, "object" refers to a particular instance of a class where the object can be a combination of variables, functions, and data structures.[2]


Example[edit]

In the image below, we see an example of the relationship between an object and class. An object is derived from a class. An object is made from a class. You can think of a class as a blueprint, and an object created from that blueprint.

Object and class.jpg

Standards[edit]

  • Define the terms: variable, constant, operator, object.

References[edit]