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 |
hai i am prasanna.I am MCA 2009 fresher.tell me about certifications.which certification helps me to improve my carrier and to get a technically oriented job ,which certification helps to get job faster.
what is class module in vb6? what it's use? with example..
major characteristics of software system
Differevce between arrays and array builders?
4. What is the need of START 0? Instead if can we use any other numeric? If we use what will happen?
What is the difference b/w Object base and object oriented programming?
3. . Explain the Cache memory? What is the advantage of a processor having more cache memory?
As per interoperatbility programs written in one language can be used by other language. How can we restrict the features of one language (say C#) in the programmer written in another language (say VB)..for example we have some features like operator overloading which is possible C#.NET (not in VB.NET), how can we restrict that when we are using this code in VB.NET.
how do we provide security for web services
needs examples for black box testing and white box testing
Diff between %let and Call symput?
how to get second highest salary from a employee table and how get a 5th highest salary from a employee table by using proc sql?