Kunal Gupta
Kunal's { Blog }

Kunal's { Blog }

What is class in Java

Photo by Feliphe Schiarolli on Unsplash

What is class in Java

Kunal Gupta's photo
Kunal Gupta
·Aug 24, 2022·

1 min read

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.

 
Share this