Search:

Type: Posts; User: dreamincode

Search: Search took 0.11 seconds.

  1. Replies
    6
    Views
    1,417

    Re: HELP with Inheritance concept here

    public class FooBar{

    public static void main(String[] args) {
    Foo f = new Bar();
    f.addFive();
    System.out.println(f.a);
    }
    }

    public class Foo {
  2. Replies
    6
    Views
    1,417

    Re: HELP with Inheritance concept here

    Code is working fine, I just want to know the logic behind it. Why the output b3 ?
    According to my logic, output is b13
  3. Replies
    6
    Views
    1,417

    HELP with Inheritance concept here

    Hello everyone, I am new to programming, but I do know the basic concepts of programming, specially Java

    I just want to know, how do I get the output as A) b3 every time I run the program, whats...
Results 1 to 3 of 3