Polymorphism


Posted on 16th Feb 2014 07:03 pm by admin

Was wondering if someone could explain this a little better to me. I had always assumed that it had to do with method overloading or overriding(through inheritence).

The following wikipedia entry seems to indicate otherwise though:

http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming

"Polymorphism is not the same as method overloading or method overriding. [1] Polymorphism is only concerned with the application of specific implementations to an interface or a more generic base class. Method overloading refers to methods that have the same name but different signatures inside the same class. Method overriding is where a subclass replaces the implementation of one or more of its parent's methods. Neither method overloading nor method overriding are by themselves implementations of polymorphism"

No comments posted yet

Your Answer:

Login to answer
66 Like 20 Dislike
Previous forums Next forums
Other forums

Filtering for a phrase using pregmatch
Here is my code which looks for addresses which start with ' src=" '

Code: [Select]preg_

Comparing Values
Hi
I'm reading data from a database and this seems to work OK.

Each system has an associat

pagination numbering pattern
Hello,

I have following code which works great for pagination. but i have small issue now.

close site for maintenance
i get a tutorial, saying the following code can put our site offline, and only the developer can vie

Generating unique numbers using php
Hi,
I need help in generating unique number using php.I tired using rand() in php.But, by using r

RSS poster script?
I have found a script that posts RSS's for me on a site that I'm building. However I would like to a

PHP submit form script causing blank page
Im trying to submit a form using this script, however nothing shows up on the page, does anyone know

problem in program for counting no of chars using pointers
Hi all, I was trying to make a program which counts number of chars in a string using concpt of poin

Is there something wrong?
Hi all,

Just a quick question... can someone look at this code and see if something is wrong?

SQL Query/echo not working
Hey all,

I'm trying to run (what I thought) was a simple operation and it isn't working. I h

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash