Erreur de modificateur d'accès privé Java lorsque nous l'appelons
// Java program to illustrate error while
using class from different package with
private modifier
package one;
class A
{
private void display()
{
System.out.println("Welcome to softhunt.net");
}
}
class B
{
public static void main(String args[])
{
A obj = new A();
// Trying to access private method
of another class
obj.display();
}
}
Outrageous Ostrich