J
James D Carroll
I don't know why I never thought of this, but we know that there is the
"package" level of protection for methods. Let's say that there is a package
that I'm interested in. Could I create a class that of the same package to
gain access to them? Could I create a class as
package java.lang
public class MyClass{...}
and get access to all the methods all the methods that were supposed to be
for the original class in that package only?
Thanks,
"package" level of protection for methods. Let's say that there is a package
that I'm interested in. Could I create a class that of the same package to
gain access to them? Could I create a class as
package java.lang
public class MyClass{...}
and get access to all the methods all the methods that were supposed to be
for the original class in that package only?
Thanks,