Jump to content

Class (programming)

From Simple English Wikipedia, the free encyclopedia
Revision as of 03:39, 4 March 2008 by BowToChris (talk | changes) (Created article)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A class is a part of a program that a programmer uses to represent a thing in a way that a computer can understand. A class is written in a programming language and a programming lenguage that can be used to write classes is called an Object-oriented programming language. Classes have fields, which represent a quality the thing has, and classes have methods, which represent what a thing can do. For example, a programmer could write a class to represent a car, which could have a color field, four tire fields, and a drive method.