Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 4 - Huffman Trees (Part 1)
Date: Thu Oct 11 2001 11:12 am
Author: Cipriani, Jason A. <jac4@andrew.cmu.edu>
Subject: Re: Changing FileBitReader

you might get that error if you do something like this:

import java.io.*;

public class XXX extends FileBitReader () {

public XXX () {
super(); // THIS LINE CAUSES THAT ERROR
};

public XXX (String filename) throws FileNotFoundException {
super(filename);
};

};


if you try to call super(), it will try to call the default constructor of FileBitReader, which doesn't exist. and you get that error when you try to compile it.

hope that helps.

jason
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
Changing FileBitReader      Chow, Jicai Jonathan      Wed Oct 10 2001 10:46 am       
Re: Changing FileBitReader      Maxim, Michael G.      Wed Oct 10 2001 4:24 pm       
Re: Changing FileBitReader      Chow, Jicai Jonathan      Wed Oct 10 2001 8:24 pm       
Re: Changing FileBitReader      Cipriani, Jason A.      Thu Oct 11 2001 11:12 am       
Re: Changing FileBitReader      Ghosh, Debmallo S.      Thu Oct 11 2001 2:03 pm       

Back to previous screen