Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Object interfaces allow you to create code which specifies which methods a class must implement, without having to define how these methods are handled.
2
votes
4
answers
245
views
Making a better Engineer
Interface:
public interface Engineer {
String HOMELESS = "homeless";
String ENGINEER = "engineer";
String SOFTWARE_ENGINEER = "softwareEngineer";
String TEST_ENGINEER = "testEngineer"; … Should I make constants static final if they are defined in an interface? Which constants should I prefer, int or String?
Can I make some additional actions in setters? …