Computer Scientists are Pretty Pessimistic

Sunday, 10 April 2016

What is Class in JAVA ?

## Class is a collection of objects of similar type. Objects are variables of the type class. Once a class is defined, we can create any number of objects belonging to that class.

Example: grapes,bananas and orange are the member of class  fruit.

N.B: Classes are user define data types.

No comments:

Post a Comment