View Single Post
  #1 (permalink)  
Old 04-24-2007, 11:11 AM
RageArtworks RageArtworks is offline
Newbie
 
Join Date: Apr 2007
Posts: 4
Rep Power: 0
RageArtworks is on a distinguished road
Red face syntax of an extend

I'm trying my hand at Java, but I don't know how this works.
Is it like:
Code:
class Alfabet {
class Vowel extends Alfabet { }
}
or:
Code:
class Alfabet {
}
class Vowel extends Alfabet {
}
So like two seperate classes linked by the word extend, or is one class really inherited inside a class?

Forgive me if I sound stupid, but I'm doing the Java Tutorial, and I only got to this page java.sun.com/docs/books/tutorial/java/concepts/inheritance.html and it's cracking my mind. Thanks!
Reply With Quote

Sponsored Links