I hereby claim:
- I am mikeholmesuk on github.
- I am mikeholmesuk (https://keybase.io/mikeholmesuk) on keybase.
- I have a public key ASB3daedPI3E5EZGsjLoE6NTm9i67ociIILiIHrISEqWvgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
.theme li { | |
list-style: none; | |
} | |
.theme li:before { | |
content: '\2022'; | |
display: block; | |
position:relative; | |
max-width: 0; | |
max-height: 0; | |
left: -10px; |
package my.classes.foo; | |
/** | |
* Created by mikeholmes on 17/06/15. | |
*/ | |
public class MyClassImpl implements IManager { | |
public String firstname; | |
public String lastname; | |
protected int age; | |
private int f; |
// Singleton class | |
public enum Singleton { | |
INSTANCE; | |
// Do stuff | |
} | |
public class Main { | |
public static void main (String[] args) { | |
Singleton singelton = Singleton.INSTANCE; |
// Singleton class | |
public class Singleton { | |
private Singleton instance; | |
// Private constructor so cannot be instantiated directly | |
private Singleton() {} | |
public static synchronized Singleton getInstance() { | |
if (instance == null) { | |
instance = new Singleton(); |
// Interface for returned type | |
public interface Person { | |
public Gender getGender(); | |
public String getName(); | |
} | |
// COncrete classes | |
public class Male implements Person { | |
// Properties | |
private String name; |
// Entity | |
public class Person { | |
// Properties | |
private String firstname; | |
private String Lastname; | |
private Gender gender; | |
// Assume constructor set rather than getters/ setters | |
public Person(String firstname, String lastname, Gender gender) { | |
this.firstname = firstname; |
// Abstract Products | |
public interface Letter { | |
public String getIntro(); | |
public String getBody(); | |
} | |
public interface Resume { | |
public String getIntro(); | |
public String getBody(); | |
} |