Category:Classes: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
A '''[[Wikipedia:C++ classes|class]]''' is a C++ template from which 'objects' are 'instanced' at run-time. Every [[npc_combine_s]] object in a map is an instance of the [[CNPC_CombineS]] class, for example.
A C++ '''[[Wikipedia:C++ classes|class]]''' is a blueprint from which actual "objects" are "instanced" at run-time. Every [[npc_combine_s]] object is an instance of the <code>[[CNPC_CombineS]]</code> class, for example.


When a class can be evaluated (e.g. equals, greater than, less than...) it becomes known as a [[:Category:Variables|variable]].
When a class can be evaluated (e.g. equals, greater than, less than...) it becomes known as a [[:Category:Variables|variable]].


[[Category:Programming]]
[[Category:Programming]]

Revision as of 15:15, 5 August 2009

A C++ class is a blueprint from which actual "objects" are "instanced" at run-time. Every npc_combine_s object is an instance of the CNPC_CombineS class, for example.

When a class can be evaluated (e.g. equals, greater than, less than...) it becomes known as a variable.

Subcategories

This category has only the following subcategory.

V