By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,798 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,798 IT Pros & Developers. It's quick & easy.

Where good example of code for creating a Class ?

P: n/a
tmb
I'm a newbie to Java and more or less to OOP...

1 - Where will I find a good example of java code that actually creates...

A Class
... with Class variables
... with Methods
... constructors
... other elements that may be in a class

2 - Finally, everything in Java starts with a Class... right?
3 - Then you create an instance of a Class and call it an Object... right?
4 - And that object inheriets all the properties of the parent class...
right?
5 - Meaning it inheriets the classes methods and placeholders for its
variables... right?)
6 - But can there after be refered to by the name you assign it when you
created it... right?

thanks for any help - tmb
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
drop down to your local book store and pick up the following:

java certification
http://www.amazon.com/exec/obidos/tg...books&n=507846

craig larman, applying uml & patterns
http://www.amazon.com/exec/obidos/AS...336270-8466308

take two weeks to go over the material

right now, it's the shortest distance between point a and b for you

- perry

tmb wrote:
I'm a newbie to Java and more or less to OOP...

1 - Where will I find a good example of java code that actually creates...

A Class
.. with Class variables
.. with Methods
.. constructors
.. other elements that may be in a class

2 - Finally, everything in Java starts with a Class... right?
3 - Then you create an instance of a Class and call it an Object... right?
4 - And that object inheriets all the properties of the parent class...
right?
5 - Meaning it inheriets the classes methods and placeholders for its
variables... right?)
6 - But can there after be refered to by the name you assign it when you
created it... right?

thanks for any help - tmb


Jul 17 '05 #2

P: n/a
"perry" <an***********@yahoo.com> wrote in message
news:i9*******************@news20.bellglobal.com.. .
drop down to your local book store and pick up the following:

java certification
http://www.amazon.com/exec/obidos/tg...books&n=507846
craig larman, applying uml & patterns
http://www.amazon.com/exec/obidos/AS...336270-8466308
take two weeks to go over the material

right now, it's the shortest distance between point a and b for you

- perry

http://java.sun.com/docs/books/tutorial/ would likely be shorter. In the
future please post to comp.lang.java.help. This group is obsolete.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.