Object-Oriented Software Class
(Redirected from OO Class)
Jump to navigation
Jump to search
An Object-Oriented Software Class is a programming construct within an object-oriented programming language that allows the definition of a object-oriented class objects state and behavior.
- Context:
- It must have a OO Class Definition.
- It can define an Object-Oriented Class Method.
- It can define one or more Object-Oriented Class Members.
- Example(s):
- See: OO Program, Program Data Structure, Member Variable, Constructor Method, Data Type, Metaclass, Object-Oriented Programming, Object (Object-Oriented Programming), Member Variable, Method (Computer Programming), Constructor (Object-Oriented Programming), Subroutine, Data Type, Instance (Computer Science), Instance Variable, Class Variable, First-Class Citizen.
References
2015
- (Wikipedia, 2015) ⇒ http://en.wikipedia.org/wiki/Class_(computer_programming) Retrieved:2015-2-13.
- In object-oriented programming, a class is an extensible program-code-template for creating objects, providing initial values for state (member variables) and implementations of behavior (member functions, methods). 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. 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.
In some languages, classes are only a compile-time feature (new classes cannot be declared at runtime), while in other languages classes are first-class citizens, and are generally themselves objects (typically of type
Class
or similar). In these languages, a class that creates classes is called a metaclass.
- In object-oriented programming, a class is an extensible program-code-template for creating objects, providing initial values for state (member variables) and implementations of behavior (member functions, methods). 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. 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.
2011
- http://en.wikipedia.org/wiki/Class_%28computer_science%29
- … Classes consist of and are composed from structural and also behavioral constituents, though there may not be a requirement to include any structural or behavioral constituents at all. Programming languages that include classes as a programming construct offer support for various class-related features. These features, and the syntaxes with which they are provided, vary greatly. Various control features such as member access specifiers may be provided by a language.