Have a look at this example:
class Parent{ Child child = new Child(); Random r = new Random(); } class Child{ public Child(){ //access a me
Yes, If it is static method , you can do that (Random.methodName()).
Random.methodName()
If it is an instance method, A big Noooooo. You definitely need Random instance.
Random