Difference between revisions of "Object"

esse quam videri
Jump to: navigation, search
(Explanation)
(Explanation)
Line 10: Line 10:
 
=Explanation=
 
=Explanation=
 
Like a program or class type, ''objects'' have variables and methods - but the added benefit of an object is that it can be ''invoked''  or ''instantiated'' like a method!
 
Like a program or class type, ''objects'' have variables and methods - but the added benefit of an object is that it can be ''invoked''  or ''instantiated'' like a method!
 +
 +
Objects can determine the behavior of the class they're created from. When you call an object in code, you can tell it to invoke one of its data variables or functions!
 +
From a programming point of view, an object can be a data structure, a variable or a function. It has a memory location allocated. The object is designed to be part of a class's hierarchy.
 +
 +
Think of a cup of coffee - there are a lot of different ''types'' of coffees around, but they each have similar characteristics.
 +
There are different flavors, sizes, and prices - but they're all still coffee!
  
 
=Resources=
 
=Resources=

Revision as of 00:07, 9 August 2019

Definition

Objects are instances of a particular class or subclass that is able to use that class's own methods or procedures and data variables.

In object-oriented programming (OOP), programs are designs with objects in mind - they are the centerpiece in constructing your units of code! The object is what actually runs in the computer.

Relevance

Explanation

Like a program or class type, objects have variables and methods - but the added benefit of an object is that it can be invoked or instantiated like a method!

Objects can determine the behavior of the class they're created from. When you call an object in code, you can tell it to invoke one of its data variables or functions! From a programming point of view, an object can be a data structure, a variable or a function. It has a memory location allocated. The object is designed to be part of a class's hierarchy.

Think of a cup of coffee - there are a lot of different types of coffees around, but they each have similar characteristics. There are different flavors, sizes, and prices - but they're all still coffee!

Resources

See also

Notes

External Links