public class Test { public static void main(String[] args) { B b = new B(); b.m(5); System.out.println("i is " + b.i); } } class A { code example
Example: public class HelloWorld{ public static void main(String []args){ System.out.println("Hello World"); } }
public class HelloWorld{
public static void main(String []args){
System.out.println("Hello World");
}
}