| การ Implement ของ Interface | การ Implement ของ Interface |
|---|
subject:การ Implement ของ Interface
syntax:class class_name implements interface_name { attribute; method; } interface Life { public abstract void walk (); public abstract void run (); }
content:การ Implement ของ Interface
example:interface Person extends Life { public abstract void sleep (); } class Bamboo implements Person { public void walk ( ) { } public void run ( ) { } public void sleep ( ) { } }