Jump to content

Class (programming)

From Simple English Wikipedia, the free encyclopedia
Revision as of 14:56, 22 May 2008 by JAnDbot (talk | changes) (robot Adding: sk:Trieda (programovanie))

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 language 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.