Added: 2 years ago
From: carlislemc
Views: 20,410
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (13)

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

  • Thank you very much. :)

  • Comment removed

  • 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.

  • 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

  • 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.

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

  • Loading comment...
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