public class FooBar{
public static void main(String[] args) {
Foo f = new Bar();
f.addFive();
System.out.println(f.a);
}
}
public class Foo {
Type: Posts; User: dreamincode
public class FooBar{
public static void main(String[] args) {
Foo f = new Bar();
f.addFive();
System.out.println(f.a);
}
}
public class Foo {
Code is working fine, I just want to know the logic behind it. Why the output b3 ?
According to my logic, output is b13
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...