class A{ void me(){s.o.p("");} class B extends A{ void me()
{s.o.p(" ");} class M{ A a=new B(); B b=new A(); a.me();
b.mne();} what is the output of this, how?
Answer Posted / sk
B b=new A();
you cannot assign a superclass object to a reference of
subclass.
| Is This Answer Correct ? | 21 Yes | 4 No |
Post New Answer View All Answers
Code for display the images from drive using vb 6.0?
How can recruiter justified that the candidate is expert in Algorithm and datastructure for Software product development ?
what are the topics choosen for jam round for interviews
Explain what is OOPS and its concepts?
In OB52 , How to define two open posting period, Like only 5 and 8 posting should be open.. should not open 6 and 7..period..
design a counter with the following repeated binary sequence: 0, 1, 2, 3, 4, 5, 6, 7, 8 using JK Flip Flop.
What for decision coverage and modified condition decision coverage are used? Wat is the difference between them?
what is programmable BIST in today ic design
why we use abstract in awt?
what is diff bet ref variable & instance of class
sample code for data transfer between two r/2 systems and r/3 systems?
could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?
How do you pass variables forwrd to future CECI sessions
i am exeprienced person what is selection process
what is the difference between SCAN AND CHECK,LOKUP AND XFOOT? where we can use thease opcodes? Can any body tell me real time senariao with example?