🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #26935

Re: �Simular herencia multiple?

#26935
From: Alejandro Navarro
Date: Thu, 12 Nov 1998 00:00
39 lines
1244 bytes
Fco Javier Pulido Vaquero wrote:

> �Puedes aclararme un poco?
>
> - �C�mo podr�a simular herencia m�ltiple en Java? S� que se puede conseguir
> implementando Interfaces en una clase, pero le he dado vueltas al asunto y
> a�n no lo tengo muy claro.
>
> Un cordial saludo, ;-)
>
> fjpulido@lobocom.es

Crea una clase que implemente varias interfaces y dentro desarrolla los
m�todos de las interfaces.

Ej.

class MiClase implements Interface1, Interface2, ...
{
    void Metodo1Interface1
    {
        Tu c�digo
    }

    void Metodo2Interface1
    {
        Tu c�digo
    }
    .
    .
    .
    void Metodo1Interface2
    {
        Tu c�digo
    }
    .
    .
    .
}
Technical Details
Message-ID: <364B2936.DACA39E8@esed.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <72em2t$n0v$1@talia.mad.ibernet.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: 1116f3,a73bec53770fedc9
X-Google-Attributes: gid1116f3,public
From: Alejandro Navarro <anv@esed.es>
Subject: Re: �Simular herencia multiple?
Date: 1998/11/12
Message-ID: <364B2936.DACA39E8@esed.es>
X-Deja-AN: 411144750
Content-Transfer-Encoding: 8bit
References: <72em2t$n0v$1@talia.mad.ibernet.es>
Content-Type: text/plain; charset=iso-8859-1
Organization: Cibernos S.A. (Departamento I+D)
Mime-Version: 1.0
Newsgroups: es.comp.lenguajes.java