🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Cambio de modificador en la herencia

#941
From: sergiohdezm
Date: Tue, 31 Oct 2006 15:54
6 lines
1382 bytes
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: <1162310067.255814.206240@m73g2000cwd.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1116f3,cf4dd51864825e5b,start
X-Google-Attributes: gid1116f3,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail
From: sergiohdezm@terra.es
Newsgroups: es.comp.lenguajes.java
Subject: Cambio de modificador en la herencia
Date: 31 Oct 2006 07:54:27 -0800
Organization: http://groups.google.com
Lines: 7
Message-ID: <1162310067.255814.206240@m73g2000cwd.googlegroups.com>
NNTP-Posting-Host: 193.145.150.39
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1162310073 14308 127.0.0.1 (31 Oct 2006 15:54:33 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 31 Oct 2006 15:54:33 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: m73g2000cwd.googlegroups.com; posting-host=193.145.150.39;
   posting-account=-MNYVAwAAADyMXIJGMPwMFLJKe5HkxyG