text: I don't need advice, I just need solution!
  I don't need advice, I just need solution!
  Because of code encapsulation.
  I want that when my user typed "myFile." onley sees ,y classes and inherited methods I want, Not all the methods of java.file class.
  what to do?
  No man! it's the best idea which I've implemented in dot net.
  In dot net I can do this, I just want to know how to do it in Java.
  Hi there.
  I want to create my own File class to work easier with files.
  Is it possible to inherit for example only file.exists from java file class not every methods?
  public class a{
  // here I want to read the value of name or f1 or f2 or every other field values from derived classes
  }
  public class b extends a{
  public string name;
  }
  public class c...
  Hi there.
  I want to access derived class field values. I can access field names with my code but for the values Its necessary to create a class instance.
  I don't know how to do. look at my code:
  ...