🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #153623

Re: Zmienna z klasy potomnej w klasie bazowej

#153623
From: Krzysztof Rudnik
Date: Sun, 28 Oct 2012 00:12
12 lines
1218 bytes
Smok wrote:

> Cześć.
> Czy w abstrakcyjnej klasie bazowej można użyć metody która wykorzystuje
> zmienną z klasy potomnej? Jak to zrobić? Mam klasę "Działanie" w której
> chcę napisać metodę która wyrzuci na standardowe wyjście wartość zmiennej
> char ustawionej już klasie pochodnej (np dodawanie wyrzuci znak + a
> mnożenie wyrzuci znak *). Dzięki Smok.

Zrób metodę pure virtual.

Krzysiek
Technical Details
Message-ID: <k6ht8j$bru$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <76d5aa43-7b1d-4f05-85d7-35c20ccb23e2@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Krzysztof Rudnik <rudnik@kki.net.pl>
Newsgroups: pl.comp.lang.java
Subject: Re: Zmienna z klasy potomnej w klasie bazowej
Date: Sun, 28 Oct 2012 02:12:03 +0200
Organization: ATMAN - ATM S.A.
Lines: 13
Message-ID: <k6ht8j$bru$1@node2.news.atman.pl>
References: <76d5aa43-7b1d-4f05-85d7-35c20ccb23e2@googlegroups.com>
NNTP-Posting-Host: nat-10.net-serwis.pl
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1351383124 12158 194.126.238.132 (28 Oct 2012 00:12:04 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Sun, 28 Oct 2012 00:12:04 +0000 (UTC)
User-Agent: KNode/4.6.1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit