Fandom

Wikianswers

Welcome! Enter your question below. Please use words like "Who, What, Where, When, Why, How, etc..." in your question. Nothing to ask? Click here for a random, un-answered question.

What is a "class" in Java programming?

1,038,949questions on
Wikianswers
Add New Page
Talk0 Share

A class is a "type" where objects can be instantiated from.

Classes in most programming languages are properties (variables) and functions grouped together. Think of them like objects in the real world. A book class, for instance, might have properties for its name, author, and number of pages, and functions such as turning a page. You can have multiple things with the same class (instances) existing at the same time, and with different properties, eg book A with 30 pages and book B with 50.

If you're feeling brave, have a look at the Wikipedia page on Object-oriented programming.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki