• Post Reply Bookmark Topic Watch Topic
  • New Topic

Interface  RSS feed

 
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read this topic https://docs.oracle.com/javase/tutorial/java/concepts/interface.html and i stack .When i want to do a class interface i should do this "class ACMEBicycle implements Bicycle" ? I dont use like abstract class the word ''abstract'' ?When i have interface i should make it '''implement'' not to use the word ''interface'' right?
 
author & internet detective
Marshal
Posts: 37518
554
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You use "interface" where declaring the actual interface. So public interface Bicycle.
 
Sheriff
Posts: 4293
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And when you use an interface, you use the implements keyword.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!