POLITECHNIKA RZESZOWSKA
' Wydział BWMMI IMmtaM
package A;
public class Siaple {
public void methodO ( System.out .printin ("A") ł
1 public class SlmplN {
public void methodO | System.out -printin ("B")
1
import,A.*; import B.*;
public class MyClass {
public static void main(String[] args) (
A. łJimple óbjl * new A-SimpieO ;
B. Simpie obj2 * new B.SimpleO ; objl.methodO; obj2.methodO;