my method "abc" return array of interface "xyz"
and "pqr" is abstract class implements abc
and class "jkl" extends pqr
My problem
1) when i call abc it retrun array xyz how can i do this
hint
xyz refer_xyz = new jkl();
but i can't create array.
2)I want to access method of jkl using reference of xyz??
Answer Posted / guest
ur public abstract class qpr implements xyz not abc
becoz abc is method
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What one should take care of, while serializing the object?
Is array primitive data type in java?
What is string in java?
What are default methods ?
What is an escape character in java?
State the merge-sort principle and its time complexity.
Can we clone singleton object in java?
What is argument in java?
What is a subsequence of a string?
How is it possible for two string objects with identical values not to be equal under the == operator?
What is an object in java and how is it created?
What is the method in java?
What is unicode in java?
What is use of set in java?
How can a gui component handle its own events?