call anonymous class method in java
问题 I am trying to write code for the following question : WAP to get empno ,DOB and salary of few employees. Write two anonymous inner class , one that implements an interface to sort the employees as per their DOB and another anonymous inner class that extends a class to sort the employees as per their salary . My code is : //required import statements public class OuterClass { private int empno; private String DOB; private int salary; public OuterClass() { // TODO Auto-generated constructor