Merge pull request #6081 from FDPro/master
dupirefr/dupire.francois+pro@gmail.com [BAEL-2424] Retrieving a Java Class Fields Using Reflection
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package com.baeldung.reflection;
|
||||
|
||||
public class Employee extends Person {
|
||||
|
||||
public int employeeId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.baeldung.reflection;
|
||||
|
||||
public class MonthEmployee extends Employee {
|
||||
|
||||
private double reward;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.baeldung.reflection;
|
||||
|
||||
public class Person {
|
||||
|
||||
public String lastName;
|
||||
private String firstName;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user