Class DefaultMethodExamples.RegularUser
java.lang.Object
net.jrodolfo.java_evolution.java08.DefaultMethodExamples.RegularUser
- All Implemented Interfaces:
DefaultMethodExamples.Named
- Enclosing class:
DefaultMethodExamples
public static class DefaultMethodExamples.RegularUser
extends Object
implements DefaultMethodExamples.Named
Implementation that inherits all default behavior from
DefaultMethodExamples.Named.-
Constructor Summary
ConstructorsConstructorDescriptionRegularUser(String name) Creates a regular user that inherits all default methods. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DefaultMethodExamples.Named
displayName, initials
-
Constructor Details
-
RegularUser
Creates a regular user that inherits all default methods.- Parameters:
name- the user's name
-
-
Method Details
-
name
Description copied from interface:DefaultMethodExamples.NamedSupplies the raw name owned by the implementation.- Specified by:
namein interfaceDefaultMethodExamples.Named- Returns:
- the raw name supplied by the implementation
-