Search:

Type: Posts; User: Kungpaoshizi

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    1,344

    Re: Trick question?

    public static void main(String[] args) {
    // TODO code application logic here
    A a = new B();
    a.callme();
    }
    }

    class A
    {
    public void callme()
  2. Replies
    4
    Views
    1,344

    Re: Trick question?

    I'm not even sure I'm breaking this down to myself correctly...
    Given a class A and another (B) that inherits from it, if you have a method that casts B to A and invokes a method x() that both A and...
  3. Replies
    4
    Views
    1,344

    Trick question?

    Hi there, I'm preparing for an interview with a company, and I came across this question earlier and was wondering peoples' thoughts on it.
    I have a fairly solid programming background, but not so...
Results 1 to 3 of 3