🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Cambio de modificador en la herencia

#943
From: Mindundi
Date: Wed, 01 Nov 2006 23:14
13 lines
1547 bytes
As� es, como bien te dice el compilador, no se puede reducir la visibilidad
de un m�todo heredado.

Un saludo

<sergiohdezm@terra.es> escribi� en el mensaje 
news:1162310067.255814.206240@m73g2000cwd.googlegroups.com...
Hola, necesito hacer que un m�todo de JLabel sea privado en la clase
LabelNuevo, la cual extiende a JLabel. �Alguien sabe c�mo hacerlo? Si
intento definir dicho m�todo con el modificador private, me dice que
debe ser public porque extiende a un m�todo public.

Muchas gracias.
Technical Details
Message-ID: <cO92h.27939$MA3.13922@news.ono.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!aotearoa.belnet.be!news.belnet.be!news.rediris.es!news.espanix.net!62.42.230.143.MISMATCH!newsf01.ono.com!news.ono.com.POSTED!53ab2750!not-for-mail
References: <1162310067.255814.206240@m73g2000cwd.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1116f3,cf4dd51864825e5b
X-Google-Attributes: gid1116f3,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!aotearoa.belnet.be!news.belnet.be!news.rediris.es!news.espanix.net!62.42.230.143.MISMATCH!newsf01.ono.com!news.ono.com.POSTED!53ab2750!not-for-mail
From: "Mindundi" <mindundi@hotmail.com>
Newsgroups: es.comp.lenguajes.java
References: <1162310067.255814.206240@m73g2000cwd.googlegroups.com>
Subject: Re: Cambio de modificador en la herencia
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
Message-ID: <cO92h.27939$MA3.13922@news.ono.com>
Date: Thu, 2 Nov 2006 00:14:17 +0100
NNTP-Posting-Host: 62.174.115.162
X-Trace: news.ono.com 1162422536 62.174.115.162 (Thu, 02 Nov 2006 00:08:56 MET)
NNTP-Posting-Date: Thu, 02 Nov 2006 00:08:56 MET