This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Simple questions about Java! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Simple questions about Java!" Watch "Simple questions about Java!" New topic
Author

Simple questions about Java!

joe kane
Greenhorn

Joined: Jan 26, 2004
Posts: 29
Hello all,
I have a few questions I cant seem to find the answers too.
1. Define, Public, Private & Protected
2. What is a constructor
3. What is inheritance
Thats all, if you know the answers please let me know.
Thanks Joe......
Jeffrey Hunter
Ranch Hand

Joined: Apr 16, 2004
Posts: 305
Originally posted by joe kane:
Hello all,
I have a few questions I cant seem to find the answers too.
1. Define, Public, Private & Protected
2. What is a constructor
3. What is inheritance
Thats all, if you know the answers please let me know.
Thanks Joe......

Public, Private, Protected -HERE
Constructors - HERE
Inheritance - HERE
You'll find most of your answers to basic questions at Sun's java site (http://java.sun.com).
[ May 04, 2004: Message edited by: Jeffrey Hunter ]
[ May 04, 2004: Message edited by: Jeffrey Hunter ]
joe kane
Greenhorn

Joined: Jan 26, 2004
Posts: 29
Thanks for that, but im just looking for a simply definiction of the following question
e.g. A constructor initializes the instance of a class, it must have the same name as its class, it cannot specify a return type or a return value.
Thats all, I intend reviewing the code also.
Thanks In advance Joe....
Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
Well, if you read info at the links provided by Jeffrey I imagine you'd be able to write such statements yourself.
The link for Constructors may be a bit off-topic - it leads to a tutorial on discovering constructors with reflection. this page may be more useful. It's easy to find this info - it was the first hit on a Google search for 'java constructor tutorial'.
If you have any specific questions about these areas people here are more than happy to help, but general information is best found in tutorials. I don't mean to discourage you from posting here, though
Cheers,

--Tim
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Simple questions about Java!