Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Java #19 - Interfaces

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
18,854
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Nov 9, 2009

Describes how Java interfaces work, particularly the "Comparable" Interface

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (carlislemc)

  • for a card game, would you use an interface or an abstract class? :|

  • @geraldnlang You use an abstract class when you want to create a bunch of common methods/attributes that will be inherited (reused). Interfaces are useful when you have a collection of classes that must implement the same methods, but there won't be reuse.

  • at 1:20, how did you pass car1 to the method travel, before you casted car1 to vehicle? If travel takes a vechicle parameter, shouldnt you have to cast car to vehicle first?

  • Since the class Car implements the interface Vehicle, you can pass it to travel (which requires a Vehicle) without having to do a typecast.

  • at 0:59, he meant to say the interface Vehicle, right?

  • Yes, I did mean "interface Vehicle". Sorry about that!

see all

All Comments (13)

Sign In or Sign Up now to post a comment!
  • Very clear, well taught. Thanks!

  • Thank you very much. :)

  • Good video, pretty informative :D

  • thanks very much

    more videos on java please?

    Could you do one on casting objects?

    I don't understand that fully

    I know it takes loads of time to make these videos, but it's worth asking :P

  • Excellent video!!! now I can get program for Java Prog. II done! lol

  • Thanks that was very helpful

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more