Search:

Type: Posts; User: dreamincode

Search: Search took 0.41 seconds.

  1. Replies
    6
    Views
    318

    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
    318

    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
    318

    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...
  4. Replies
    1
    Views
    225

    HELP with Inheritance concept here

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

    Below image shows a java code, and I know the output is A) b 3 , I just want to know how do I get that...
Results 1 to 4 of 4