Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    3,741

    Re: Compare instance of a class to another

    You can only use the .class on actual type names, not variables. If you want to get the same class object from an actual object, use the getClass() method. Note that you will need to check to see if...
  2. Replies
    5
    Views
    3,741

    Re: Compare instance of a class to another

    You can get the name of object using reflection.

    class Parent {
    public Parent() {
    }
    }
    class Child extends Parent {
    public Child() {
    super();
    }
Results 1 to 2 of 2