Tuesday, April 10, 2007
What is an Object?
Subscribe to:
Post Comments (Atom)
World of tricky Core Java Q&A(Java SE),Java EE and Open source technologies like Struts,Hibernate,Spring,Velocity etc
Disclaimer
Interview Questions On Java,Java EE Copyright © 2012
7 comments:
Thanks,
Please tell em where we use the objects in program?
Rishi,
In object oriented technology, a system is designed in terms of realizing in form of objects which map to different business entities and/or data entities and their interactions amongst themselves. Once you completed the design then you need an OOP language like C++,Java,.NET etc to implement such systems within scope of Object oriented paradigm.
Good Explanation it will be good giving some simple examples..
thanking you.
Object is combination of two think
1-State
2-Behavior
Object is vital of the Software .
State:state is represent his properties
Behavior :Behavior is represent the operation which Object is perform
Object is an instance of a class in a memory, and it will have all the attributes, characteristics as defined in its class. We can create any number of objects from a single class.
like to see how it does
suppose a class Hello is:
class Hello{
//your code here for variable and //method
}
now to create an object or instance of class Heloo you use code as:
Hello h=new Hello();
this will create an instance of Hello class by name of h
Post a Comment