kloplop321
Psychotic Trans-dimensional Being
I know that python would be easy to put on, but as I am not a python user, but a PHP user, I hope that a php binary could be built that I can use for making scripts
Assuming that I'm getting it right, but 10 words isn't enough:Polymorphism is something they teach in C++ class, I forget what it is.
Use the Wikipedia!
Use the Wikipedia!Polymorphism is something they teach in C++ class, I forget what it is.
I think that is part of my problem. I'm ok with simple programs but when it comes to "projects" I run out of steam.Of course that said I'm having trouble getting my head wrapped around how one actually uses it though.
Stan you're a wizard! Good enough for me and I can understand that with out my eyeballs exploding.Polymorphism is treating one object like it's a different one.
10 words, if "it's" counts as a single word.
"The open-source Arduino environment makes it easy to write code and upload it to the i/o board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing, avr-gcc, and other open source software. "I have coded a little on the Arduino which is C based. It'd be cool if someone could port this. Yes it's open source.
"The open-source Arduino environment makes it easy to write code and upload it to the i/o board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing, avr-gcc, and other open source software. "I have coded a little on the Arduino which is C based. It'd be cool if someone could port this. Yes it's open source.
"The open-source Arduino environment makes it easy to write code and upload it to the i/o board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing, avr-gcc, and other open source software. "I have coded a little on the Arduino which is C based. It'd be cool if someone could port this. Yes it's open source.
Stan you're a wizard! Good enough for me and I can understand that with out my eyeballs exploding.
So it's a bit like using a bike for a frying pan. I can see this could be very usful.
Something like that. They usually have a little bit more in common than that though
Imagine you build a robot. The robot knows how to drive a Vehicle, where a Vehicle has a throttle and a steering wheel. You can put that robot into a Car, and the robot can drive it. If you put the robot into a Boat, there again, the robot can drive it. The robot doesn't know anything about Car or Boat, just Vehicle, with a steering wheel and throttle. You could create a new type of Vehicle (Motorcycle or Airplane, for example) and so long as the interface (Steering wheel and throttle) are basically the same, your robot sees it as a Vehicle and can drive it.
In real life, vehicles require more than just a steering wheel and throttle, and between vehicles those things are completely different anyway, but I hope you understand anyway.
Jeff is right, it's pretty simple when you get down to it.omg. Okay, polymorphism is easy. Its just a nasty word.
I was just being specific. If I hadn't specified C/C++, someone might assume I'm talking about PyGame or something like that, which is obviously a different baseline.
If they all havea operation 'draw', then 'draw' is considered polymorphic (essentially.)Polymorphism is really just where you have many classes that can respond to the same operation. The classic example is you might hve a Class called Square, and another called Triangle; both are descended from Shape.
Because when I started learning C, I wanted to figure out how to do some of the stuff that was incredibly easy to do in Javascript. I got quite mucked up with function pointers, once I realized that I had to add lots of **'s and type out the entire parameter list multiple times.
Yeah, C makes me sad too. Javascript is actually a really nice language. It just has a bad rep because of a couple of faults that aren't really relevant to this discussion.Because when I started learning C, I wanted to figure out how to do some of the stuff that was incredibly easy to do in Javascript. I got quite mucked up with function pointers, once I realized that I had to add lots of **'s and type out the entire parameter list multiple times.Interesting post...
So would something like this be polymorphism?
CODE
...some example code...
Pages like this made me cringe!
But that's just from the top of my hat I could be wrong and if that's the case then please someone correct me