Thank you very much. i will refer to the sun site and come back you.
where r u put up ?? i mean in which company ??

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:47 PM
To: [EMAIL PROTECTED]
Subject: Re: Object Oriented ??


err no... you would have a seperate main program -  a front end or
controlling program or whatever, and within that you would have all your
instances of your other classes
you really want to get a nice beginning java book and read some examples
in there.
at university i was taught with a students and modules example -
you have 3 main classes - one would hold all the information about an
individual student, another all the information for a module, including
possibly a list of students taking that module, and then you would have
a main controlling class with a list of modules and methods to access
the modules within that, then once you have a module from the list you
can use the methods from the module class to get information from the
students within it.
of course that is a very messy way of doing it as you would have lots of
"repeats" of students within the modules but you should get the idea
I always find that if in doubt regarding java etc, try
http://www.java.sun.com
they have some excellent tutorials and you should be able to find
something there about OO programming!
Katherine

Santosh Varma wrote:
>
> 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

--
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