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
Hi all... I had completed MSC(Computer) and had join the construction company based on sap.they want me to work on abap.but software company is totally different from construction company and they want me 2 grasp it as fast i can.i am finding it difficult.what should i do??????
what is difference between input parameter and output parameter.
Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage
19. Given a system that is described with the following equation, X=A+(B.(A̅+C)+C)+A.B.(D̅+E̅) a) Simplify the equation using Boolean Algebra. b) Implement the original and then the simplified equation with a digital circuit. c) Implement the original and then the simplified equation in ladder logic.
A good website has the following conditions It should be interactive. It should contain at least 20 images. Title cannot be null and should contain at least 10 letters other than spaces and hyphen (-). The keywords should contain atleast three among the following list : "design", "Graphics", "lovely", "beautiful", "amazing" and "mesmerising" Write a method: boolean isGoodWebsite(boolean isInteractive, int numOfImages, String title,String keywords[]) isInteractive whether the site is interactive or not numOfImages Number of images on the website title Title of the website keywords Array of keywords in the website.
Iam using Microsoft Visual Studio to create a system for mobile store I want to know how to calculate mobile price that the customer buy and how to reduce quantity from the data base that we have for mobile .And also how to calculate revnue for each mobile and revnue for the total mobile
Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in
What are two of your strengths that you will bring to our QA/testing team?
Outline the two important features of a terminating recursion. Any ideas?
What is SOLID Principle in Programming Language?
Compare any 4 software development life cycle paradigms with each other. Indicate at least one application for each of the paradigms that are suitable to developed using that paradigm.
what is adodb??y it is used for connection of V.B and access??what is ado?dao?
THE CHANNEL IN DATA COMMUNICATION CAN BE?
Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming
smal talk is pure object oriented or not?