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
What is difference between path and classpath variables?
What are constants?
How to sort an array from smallest to largest java?
What is a pattern what is an anti pattern?
Explain listiterator and methods in listiterator?
Can a class be declared as static?
What are the differences between forwarding () method and sendredirect() methods?
What is the impact of declaring a method as final?
What is equals method in java?
How do you sort a string in java?
What is the use of conditional statement?
What is mutable object and immutable object?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What are inbuilt functions?
How many bits are in a sentence?