I have below class with few public methods.
public class Sample{
public void method1(){ }
public void method2(){ }
public void method3(){ }
public void method4(){ }
}
I need to expose only first three methods to clients and not method4()
. How can I create one more class exposing only the first 3 methods?