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:

Did you know?Explore Trending and Topic pages for more stories like this.
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

Can't find a decent web analytics!!!
I've downloaded and installed Piwik. It's location detection based on IP addresses is fairly inaccur

images aren't rendering
I'm trying to call a JPG file from within PHP (in an effort to hide the actual JPG folder). The imag

php/mysql problem
Hey all,

Problem: im trying to setup a shop where people can use a drop-down list to select t

mysqli_fetch_assoc returns multiple arrays, how to return a single array
Hello, I am using mysqli_fetch_assoc which is returning multiple rows, so it looks like:

Code

newbie error
what is wrong with this code ?

<html>
<body>

<?

how to get IP address?
hey guys,

i have this code which is supposed to get me the IP address of my site visitors:

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

Is this Safe or Unsafe?
Hi i made a few pages with lots of peoples help now i just want to know if they are safe or not can

my sql select id and then update problem.
I need to select some auto incremented ids out of a database and then use those id in a where statem

help me fix these syntax errors...
I keep getting multiple syntax errors on this script like this one:

Parse error: syntax error

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