Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.

Add Java Interfaces article #781

Merged
2 commits merged into from
Apr 23, 2016
Merged

Conversation

koustuvsinha
Copy link
Member

Added article on Java Interfaces as per issue #534 . @alayek @theflametrooper @abhisekp have a look.

}
```

Now, there is a **ground rule** : The Class must implement **all** of the methods in the Interface. The methods must have _the exact same_ signature (name + parameters + exceptions) as described in the interface. The class _does not_ need to declare the fields though, only the methods.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- (name + parameters + exceptions)
+ (name, parameters, and exceptions)

@alayek
Copy link
Member

alayek commented Apr 23, 2016

Awesome 👍 @koustuvsinha !

@theflametrooper please take a look at typos, grammar etc.

@Rafase282 @abhisekp do take a look if you get time. I have validated the correctness of code snippets from a technical standpoint.

@ghost
Copy link

ghost commented Apr 23, 2016

LGTM 👍

Just implement @alayek suggestions and we should be good to go!

@alayek
Copy link
Member

alayek commented Apr 23, 2016

LGTM 👍

Great job on the REPL snippets!

@ghost ghost merged commit 0479375 into freeCodeCamp:master Apr 23, 2016
@BerkeleyTrue BerkeleyTrue removed the QA label Apr 23, 2016
@alayek alayek removed their assignment Apr 23, 2016
# Java Interfaces

Interface in Java is a bit like the Class, but with a significant difference : an `interface` can _only_ have method signatures and fields. That means, an Interface cannot contain the implementation of any method, just its signature, i.e. the name, parameters and exceptions of the method. For example :

Copy link
Member

@abhisekp abhisekp Apr 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@koustuvsinha Add a heading 2 here like this for the love of @camperbot ❤️

## (a space after the two ##)

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants