[Solved] How to connect two classes of two different packages?


You could import the packages by putting this above your class declaration

import packageA.Mypoint;

or

import packageB.MyCircle;

Also, since a circle is made up of points, you could use inheritance, so all Mypoint methods will be available to objects created from the Mycircle class

public class Mycircle extends Mypoint

1

solved How to connect two classes of two different packages?