Showing posts with label com object. Show all posts
Showing posts with label com object. Show all posts
What is an Object ?
Posted by Raj
Object in Object oriented programming
object is an instance of a class.An object is an entity that has attributes, behavior, and identity. Objects are members of a class.Objects are accessed, created or deleted during program run-time.
Declaration of an Object in OOPs
ClassName objectName=new ClassName();
Example:
Behavior in OOPS: Every object has behavior.
Identity in OOPS: Each time an object is created the object identity is been defined.