What is class in Java

Table of contents

No heading

No headings in the article.

A class is a user defined blueprint from which object are created. it represent set of properties or method that are common to object of one type.

Points to remember about class.

  • Modifiers
  • Class keyword
  • class name
  • body

Constructor are used to initialize new objects .

Variables that provides state of the class.

methods are used to create behavior of a class.