Without further ado, directly on the project directory
UML diagram corresponding
Code:
IPerson Interface
package com.waibizi; public interface IPerson { public void delete(Integer id); }
Person class
package com.waibizi; /** * Description: generalization and similar logic is used "is a" FIG. The difference is that realization relationship inherit an abstract class (abstract, interface), * The generalization inherit a specific class. * @Author crooked nose * */ public class Person implements Iperson{ @Override public void delete(Integer id) { // TODO Auto-generated method stub } }