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?
Answers were Sorted based on User's Feedback
Answer / kay
class A
{
public virtual void me()
{ s.o.p(" hi");
}
}
class B extends A
{
public override void me()
{ s.o.p(" wat up!");
}
}
class M
{
A a = new B();
a.me();
B b = new A();
b.me();
}
//output :
hi wat up!
| Is This Answer Correct ? | 5 Yes | 5 No |
what is the difference between read the data from table and infotype
which one is the best practice using synchronization method or synchronization block
what is technical system, business system, logical system in sap pi7.0
How to connect to ms word wit VB ojective is to prepare s/w to generate question paper , selects questions randomly from the ms access , database
WHat is execution in manual testing and when will we start execution and what language we use in execution
Diff between IF and where ?
what is difference between input parameter and output parameter.
Wats the name of the first os
£¢®£ž›;=9:B9<::C = ADITHI HOW TO GET?
they asked me about srs (software requirement specifcation)? how can i get anydocumentation about srs & other documnts infomation like bdd, in testing? its urgent?
I would like to know which institute in hyderabad provides best ms-dot net training along with a project. I want to join immediately. please help
HOW TO BREAK THE FIREWALL?