they asked class A{}
class B{}
class c{}
all the three class saved as a single file,there is no main
method in the file
and anothe class
M.java
class m
{
psvm(String args[])
{
// here the parent class can access
}
}
Answer Posted / suresh
Yes. You can call parent classes ( i.e A or B or C) inside
of class M by instantiate and invoke methods. If parent
classes have static methods you can directly access without
instantiating.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is 0 an irrational number?
What is string args [] in java?
What are byte codes?
Explain the private field modifier?
define the terminology association.
What is udp in java?
What is the use of a conditional inclusion statement in Java ?
Write a program in java to create a doubly linked list containing n nodes.
What is the difference between java applets and applications?
What do you understand by looping in java? Explain the different types of loops.
What is immutable in java?
What are operators and its types?
What is difference between class and object in java?
What is == and === in javascript?
Which is better singleton or static class?