thank u kath !!
so u mean to say that the class is the main and others are objects which we
can hide to other methods or classess. right ??

bye
santosh

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
KATHERINE PENGELLY
Sent: Tuesday, July 17, 2001 2:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Object Oriented ??


its not a simple concept really.
The idea is that everything in your program is represented as an object,
each object encapsulates either an entity or a particular set of
'functions' (functions as in jobs)
An object is represented programatically by a class - this has the code
to hold the information that makes up the object, and the methods with
which to access and manipulate this information.
For example, if you were to make a simple system that represented the
files of a doctor's surgery, you might have the following objects:
1. patient
2. doctor
3. reception
4. prescription
5. drug
...
the list could go on
if you take the patient example, that would include all the information
about an individual patient - name, address etc, maybe an array of notes
about each visit... all the usual patient details, and methods to add,
manipulate and view that data
then the reception class might hold some sort of list of patient
objects, and methods to access those, it might also hold list of doctor,
drug and prescription objects, one object for each real life thing. -
all these individual things are instances of that object

I hope that makes sense
Katherine


Santosh Varma wrote:
>
> can any one tell me what is meant by object oriented programming by a
simple
> and plain example ??
>
> regards,
>
> Santosh Varma
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

--
Katherine Pengelly
Industrial Year Placement with the Department of Computer Science
B52 Llandinam Building, Extension 1688
http://users.aber.ac.uk/kkp
" Documentation is the castor oil of programming. Managers know it must
be good because the programmers hate it so much."

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to