Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what do you meant by Runtime Polymorphism?

Answer Posted / ramkiran

The function which calls at runtime ratherthan the
compiletime
Ex:
Class A
{
Public void test(){
System.out.println(“This is Base Class”);
}
}
Class B extends A{
Public void test(){
System.out.println(“This is Child Class”);
}

}
Class RuntimePoly{
Public static void main(){
A a = new A();
B b = new B();
A baseClassVar;

baseClassVar = a;
baseClassVar.test();

baseClassVar = b;
baseClassVar.test();



}
}

Is This Answer Correct ?    30 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is instanceof operator used in java?

1033


What are bind parameters?

1041


How do I start learning java?

1063


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1979


What are loops in java?

1262


what are the disadvantages of indexes in oracle?

2549


What is meant by stack and queue?

1065


What data type is true or false?

1039


What is a java object and java application?

1047


What are the differences between include directive and include action?

1180


What is thread count in java?

1006


What are the parts of a method?

978


What is methods and methodology?

1025


What is string in java with example?

1018


What is ternary operator? Give an example.

1077