Hi Jyoti,
It is impossible to explain in a simple way in an e-mail what a class
and what an object is.
In two words, in Object Oriented Programming (the category of the Java
language), everything is an object: the application Window, its
menu-bar, a push button or a checkbox, the person record in the agenda
and whose coordinates are displayed in the window, and so on.
Each object belongs to a "class" (a category of objects) that defines
its behavior:
-- what are the relevant properties of the object (if it is a button:
the text on it, the size, its position, if it is a person record:
his/her first name, last name, phone number, and so on)
-- what are the actions that the object supports (display(), hide(),
resize( int newWidth, int newHeight ) and so on for a graphical object).
Several objects in an application can belong to the same class (for
example: all the buttons on the screen belong to the same class, the
difference is only in the values of their properties). The objects are
called "instances" of the class and the process of creating an object in
the computer memory is called "instantiation".
If you take the Java Programming with Passion course, you can gradually
learn all the information you need. What classes and objects are is
treated in the chapter 2, the section "Working with built-in Java
Classes" that starts with the reading of the Java tutorial on the site
of Sun "http://java.sun.com/docs/books/tutorial/java/".
If you need some complementary reading, you can go to
"http://www.ibiblio.org/pub/docs/books/eckel/" or to
"http://www.mindview.net/Books/TIJ/" and download "Thinking in Java, 3rd
Edition" or buy "Thinking in Java, 4th Edition".
Hope it helps
mihai
Jyoti Parmar a écrit :
i cant understand what is class , object and their methods and how to declare
it......please explain it to me .... i need to help to learning a java
Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!
http://downloads.yahoo.com/in/internetexplorer/
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
To unsubscribe from this group, send email to
javaprogrammingwithpassion+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.