Re: Where are the other parigrams?

From: Percival (dragontamer5788_at_yahoo.com)
Date: 01/14/05


Date: Fri, 14 Jan 2005 01:08:52 -0500

On Fri, 14 Jan 2005 05:10:37 +0000, Phlip wrote:

> Percival wrote:
>
>> Not only that, but I learn that you do not need Object oriented
>> programming to have code reuse (use any C library for example) or
>> portability and changing of implementation vs interface (Unix in general,
>> many machines, many assembly implementations, same interface) Abstraction
>> is always done in programming an extra layer (SDL or DirectX vs using
>> assembly level i/o port "in" and "out" commands)
>
> But that _is_ OO. It's "polymorphism" - the ability to use a single,
> pluggable interface for different behaviors.
>
> You are finding the hype about OO and non-OO are slightly different from the
> real thing.

OO has an emphasis on object interaction. Having polymorphism in code is
called polymorphism, and not Object Oriented (though I cannot think of a
non-OO way to do polymorphism...)

Besides, I don't think SDL is an example of polymorphism (except with its
event structure) Even then, it is a case statement for the events.

Percival



Relevant Pages

  • Re: Programming to an Interface
    ... found a reason why from programming to interfaces is better than ... You seem to be looking for two benefits of programming to an interface: ... Polymorphism. ... Improved likelihood of not impacting clients' code. ...
    (comp.object)
  • Re: whats the point of an interface?
    ... ....and that's one reason why programming is overly complexed because most ... > interface is considered to be a form of polymorphism. ... inheritance acts as "Subtyping polymorphism". ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: whats the point of an interface?
    ... >> implementation of a single interface. ... > This is inheritance, not polymorphism. ... In object-oriented programming theory, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: TextOut() to a DialogBox ???
    ... code size as if it had meaning, ... meaningless as a metric of reuse, productivity, or ... Minimizing the public interface might be a good metric. ... In programming, you can code for size or speed. ...
    (microsoft.public.vc.mfc)
  • Re: home made home security
    ... to interface to the RS485 master circuit. ... You do understand that the "master circuit" in this case needs to be a PC, ... What is the value of your time spent programming that you would ... Home security automation systems _don't_ cost thousands of dollars if you ...
    (comp.home.automation)