Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Java
(view source)
Revision as of 19:27, 2 April 2015
603 bytes added
,
19:27, 2 April 2015
no edit summary
Line 259:
Line 259:
[https://github.com/rafahsolis/javaTutorial/tree/master/ocean tutorial1.ocean package]<br />
[https://github.com/rafahsolis/javaTutorial/tree/master/ocean tutorial1.ocean package]<br />
[https://github.com/rafahsolis/javaTutorial/blob/master/packageexample.java packageexample.java]
[https://github.com/rafahsolis/javaTutorial/blob/master/packageexample.java packageexample.java]
+
+
== Interfaces ==
+
If you whant to define a method for more than one class, you should use an interface (rigt click on project > new > interface)<br />
+
Interfaces file names should start with upper case.<br />
+
Example files:<br />
+
[https://github.com/rafahsolis/javaTutorial/blob/master/interfaces.java interfaces.java]<br />
+
[https://github.com/rafahsolis/javaTutorial/blob/master/PersonInterface.java PersonInterface.java]<br />
+
[https://github.com/rafahsolis/javaTutorial/blob/master/Machine.java Machine.java]<br />
+
[https://github.com/rafahsolis/javaTutorial/blob/master/Info.java Info.java]<br />
+
== Eclipse shortcuts ==
== Eclipse shortcuts ==
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version