What is a class?

A class is considered to be a blueprint. Officially, it is known as a user-defined data type. Basically, it defines the category of things, i.e. the datatype. However, it does not actually define the data itself, just its structure and category. It covers what the class name means and what an object of the class will consist of, as well as what operations can be performed on such an object.

Unlimited number of objects can be created from a class.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.