Difference between revisions of "Class (computer programming)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(External links)
Line 41: Line 41:
  
 
* [https://en.wikipedia.org/wiki/Class_(computer_programming) Class (computer programming)] @ Wikipedia
 
* [https://en.wikipedia.org/wiki/Class_(computer_programming) Class (computer programming)] @ Wikipedia
 +
 +
[[Category:Computer programming]]
 +
[[Category:Computer science]]

Revision as of 04:24, 22 April 2016

In object-oriented programming, a class is an extensible program-code-template for creating objects.

Description

Classes provide:

In many languages, the class name is used as the name for the class (the template itself), the name for the default constructor of the class (subroutine that creates objects), and as the type of objects generated by the type, and these distinct concepts are easily conflated.

Instance

When an object is created by a constructor of the class, the resulting object is called an instance of the class, and the member variables specific to the object are called instance variables, to contrast with the class variables shared across the class.

Compile-time versus runtime

With respect to compile-time versus runtime, classes differ by language.

See also

External links