• Post Reply Bookmark Topic Watch Topic
  • New Topic

run time-api  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
can anyone tell me the bulitin api,class which supports run time polymrphism and method overloading
Thankus all
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Difficult to understand your request.

I can't find a Bulletin class nor a .bulletin package in the standard API.

You don't use an API for run-time polymorphism or overloading. They are both standard parts of the language, so any class might be able to support both features.

CR
 
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're looking for an example of such things in the standard libraries, scroll down the classes in the JavaDoc and look for anything in italics. This indicate an interface, and when you view the doc you'll probably see a list of implementing classes. These classes demonstrate polymorphism by implementing the same method signature in different ways. For an example, find List and look at the implementations.

Look at the List methods. There are two called remove() with different arguments. That's an example of method overloading - the same name with different arg lists.

One of those is called AbstractList. Abstract tells us nobody can do a new on that class and there's a good chance we'll find classes that extend it, and one of the classes extending AbstractList will likely override some methods - the same method name and arguments with new behavior.

Any of that help?

Bookmark the API JavaDoc today!
[ July 01, 2006: Message edited by: Stan James ]
 
Sheriff
Posts: 22844
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Campbell Ritchie:
I can't find a Bulletin class nor a .bulletin package in the standard API.
I think that "bulitin" was meant to be "built-in".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!