0 votes
in JAVA by
What is a class in java?

1 Answer

0 votes
by

A class–the basic building block of an object-oriented language such as Java–is a template that describes the data and behaviour associated with instances of that class. When you instantiate a class you create an object that looks and feels like other instances of the same class. The data associated with a class or object is stored in variables; the behaviour associated with a class or object is implemented with methods.

Related questions

0 votes
asked Jan 24, 2021 in JAVA by rajeshsharma
+2 votes
asked May 6, 2021 in JAVA by SakshiSharma
...