Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple questions about Java!

 
joe kane
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic