forked from MatrixSeven/JavaAOP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDogImp.java
More file actions
41 lines (31 loc) · 654 Bytes
/
Copy pathDogImp.java
File metadata and controls
41 lines (31 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package proxy;
import proxy.annon.Seven;
import proxy.imp.AnimalInterface;
public class DogImp implements AnimalInterface {
@Seven(value = "Lumia")
private String name;
private String Property;
public DogImp() {
}
@Override
public void setName(String name) {
this.name = name;
}
@Override
public String getName() {
return this.name;
}
@Override
public void say() {
System.out.println("С¹·:ÍôÍôÍôÍô.....");
}
@Override
@Seven(Property = "ˮ½Á½ÆÜսʿ")
public void setProperty(String Property) {
this.Property = Property;
}
@Override
public void getProperty() {
System.out.println(this.name + this.Property);
}
}