Search:

Type: Posts; User: ehsansh

Search: Search took 0.12 seconds.

  1. Replies
    8
    Views
    1,056

    Re: How to access derived class field values?

    I don't need advice, I just need solution!
  2. Re: Is it possible to inherit only specific methods of a class?

    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?
  3. Replies
    8
    Views
    1,056

    Re: How to access derived class field values?

    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.
  4. Is it possible to inherit only specific methods of a class?

    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?
  5. Replies
    8
    Views
    1,056

    Re: How to access derived class field values?

    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...
  6. Replies
    8
    Views
    1,056

    How to access derived class field values?

    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:
    ...
Results 1 to 6 of 6