Category:Classes: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by 3 users not shown)
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.
{{lang|Category:Classes}}
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:C++]]
{{cleanup|[[:Category:Source class]] can be a better name}}

Latest revision as of 00:43, 9 April 2023

English (en)Deutsch (de)Español (es)Русский (ru)中文 (zh)Translate (Translate)

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.
Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality because:
Category:Source class can be a better name
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

Subcategories

This category has only the following subcategory.

V