|
Share this post! |
| Vote this! |
|
Objects
An object has a unique identity, state, and behaviors. The
state of an object consists of a set of
data fields (also known as
properties) with their current values. The
behavior
of an object is defined by a set of methods. An object has both a state
and behavior. The state defines the object, and the behavior defines
what the object does.
Classes
Classes are constructs that define objects of the same type.
A Java class uses variables to define data fields and methods to define
behaviors. Additionally, a class provides a special type of methods,
known as constructors, which are invoked to construct objects from the
class.
more...
Highly
Recommended Reading After Above
java,
OOP,
Programming
0 comments:
Post a Comment