So I have class Foo
in package com.one
.
//packate com.one
class Foo{
protected static void a(){
//...
}
}
and class Bar
in package com.two
extending Foo
//package com.two
class Bar extends Foo{
//...
}
Can I use reflection, if I'm inside com.two, to make a()
not protected, and then call it?
Aucun commentaire:
Enregistrer un commentaire