5 Replies - 1168 Views - Last Post: 26 August 2013 - 04:54 PM Rate Topic: -----

#1 streek405   User is offline

  • D.I.C Addict

Reputation: 15
  • View blog
  • Posts: 721
  • Joined: 10-March 13

What does the implements keyword do?

Posted 26 August 2013 - 03:28 PM

What does the implements keyword do? Is it like extends or something? Does it borrow stuff from another class?
Is This A Good Question/Topic? 0
  • +

Replies To: What does the implements keyword do?

#2 macosxnerd101   User is online

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12769
  • View blog
  • Posts: 45,954
  • Joined: 27-December 08

Re: What does the implements keyword do?

Posted 26 August 2013 - 03:33 PM

Have you done any research on this yet? The Tutoracles are a great place to start.
Was This Post Helpful? 0
  • +
  • -

#3 streek405   User is offline

  • D.I.C Addict

Reputation: 15
  • View blog
  • Posts: 721
  • Joined: 10-March 13

Re: What does the implements keyword do?

Posted 26 August 2013 - 03:48 PM

View Postmacosxnerd101, on 26 August 2013 - 03:33 PM, said:

Have you done any research on this yet? The Tutoracles are a great place to start.

I googled it and found this http://en.wikipedia....f_Java_keywords but I still did not understand it. Im gonna check out that link you sent me.
Was This Post Helpful? 0
  • +
  • -

#4 pbl   User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8381
  • View blog
  • Posts: 31,956
  • Joined: 06-March 08

Re: What does the implements keyword do?

Posted 26 August 2013 - 04:17 PM

http://www.dreaminco...__hl__interface
Was This Post Helpful? 1
  • +
  • -

#5 farrell2k   User is offline

  • D.I.C Lover
  • member icon

Reputation: 874
  • View blog
  • Posts: 2,706
  • Joined: 29-July 11

Re: What does the implements keyword do?

Posted 26 August 2013 - 04:36 PM

Beyond the basics which were already posted, it is also interesting to note that the "implements" key word is also the only way to use multiple inheritance in Java; multiple inheritance of type, that is. You can inherit the type of Runnable, Serializable. You can be a Listener, Observer, and even something custom made by you. So next time someone tells you that there is no multiple inheritance in Java, tell them that they're wrong.

This post has been edited by farrell2k: 26 August 2013 - 04:37 PM

Was This Post Helpful? 1
  • +
  • -

#6 macosxnerd101   User is online

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12769
  • View blog
  • Posts: 45,954
  • Joined: 27-December 08

Re: What does the implements keyword do?

Posted 26 August 2013 - 04:54 PM

KYA actually has a tutorial on multiple inheritance in Java. Thanks for reminding me of that point, farrell2k!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1