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 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.
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 a [[:Category:Variables|variable]].
* If a class is designed to be accessed by the engine, it becomes an [[:Category:Interfaces|interface]].


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

Revision as of 15:16, 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 a variable.
  • If a class is designed to be accessed by the engine, it becomes an interface.

Subcategories

This category has only the following subcategory.

V