Article View: borland.public.jbuilder.java.language
Article #14915Really simple question
From: Pete Blacker
Date: Sat, 17 Jul 1999 00:00
Date: Sat, 17 Jul 1999 00:00
20 lines
937 bytes
937 bytes
Hi
How do you define an abstract class. The code I've got at the moment
looks like this
-----------
package Kernel;
public class MyClass
{
public abstract boolean Save(FileWriter File);
}
-----------
This produces the error class Kernel.MyClass must be declared abstract.
In C++ you declared any virtual function as pure and the class became
abstract. How does this work in Java?
Thanks.
Pete Blacker
Technical Details
Message-ID:
<3790A080.BB89BD7F@comicjunk.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,231bed597c998f1b,start X-Google-Attributes: gidf74b3,public From: Pete Blacker <pete@comicjunk.com> Subject: Really simple question Date: 1999/07/17 Message-ID: <3790A080.BB89BD7F@comicjunk.com> X-Deja-AN: 502112200 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language