Class in Java - ISC Java Expert

Breaking

BANNER 728X90

Sunday, August 19, 2018

Class in Java



WHAT IS A CLASS

Definition: The user-defined data type which contains data and functions together is known as class. In other words a class is a way of binding or combining data members and its associated member functions in the form of a unit.

Data Members: The variable or data given within the class on which some operations are to be performed is known as data and the variables which are used to store this data are known as data members or instance variables.

Member Functions: The user-defined name which contains required set of instructions as its body to perform a task is known as method or function. The task may be taking input or printing the values etc.


No comments:

Post a Comment