Hello, I have an abstract Cipher class in a Cipher package, an abstract CipherHandler class and DemoHandler class in ano
Posted: Mon May 02, 2022 11:46 am
Hello,
I have an abstract Cipher class in a Cipher package, an abstract
CipherHandler class and DemoHandler class in another package, and
the Demo class in another package.
Without changing anything in the other classes, how can my
ENCRYPT and DECRYPT button in Demo class access the methods in my
CipherHandler class?
If I have to revise a class, how should I do it?
I am using IntelliJ.
CIPHER:
HANDLER 1:
HANDLER 2:
DEMO:
CURRENT ERROR:
Demo.java src\ProjectDemo 2 errors O encryptFile(java.lang. String) has protected access in ProjectHandler.CipherHandler :83 O decryptFile() has protected access in ProjectHandler.CipherHandler :89
I have an abstract Cipher class in a Cipher package, an abstract
CipherHandler class and DemoHandler class in another package, and
the Demo class in another package.
Without changing anything in the other classes, how can my
ENCRYPT and DECRYPT button in Demo class access the methods in my
CipherHandler class?
If I have to revise a class, how should I do it?
I am using IntelliJ.
CIPHER:
HANDLER 1:
HANDLER 2:
DEMO:
CURRENT ERROR:
Demo.java src\ProjectDemo 2 errors O encryptFile(java.lang. String) has protected access in ProjectHandler.CipherHandler :83 O decryptFile() has protected access in ProjectHandler.CipherHandler :89