Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 236 Bytes

public_classes.md

File metadata and controls

11 lines (8 loc) · 236 Bytes

Public Classes

To be able to use a class in one package from a different package, you must first mark that class as public.

package village;

// Now other packages will be able to see it
public class Villager {}