Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 5 - Parts 1 and 2
Date: Sat Nov 10 2001 11:20 pm
Author: Goodman, Brian J. <bjg@andrew.cmu.edu>
Subject: Re: understanding and encouragement

Yes, you can certainly declare private data in a class that implements an interface. The interface won't specify anything related to this data because interfaces have no private data. In fact they have no data. So any implementing class can have data members, regardless of the interface. You just need to be careful that they get initialized (probably easiest to do in your constructor(s)).
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
WebSpider::hasNext() ???      Cipriani, Jason A.      Tue Nov 6 2001 11:46 pm       
Re: WebSpider::hasNext() ???      Lee, Peter      Wed Nov 7 2001 2:39 am       
understanding and encouragement      Liu, Limin Angela      Wed Nov 7 2001 11:17 am       
Re: understanding and encoura...      Cipriani, Jason A.      Wed Nov 7 2001 1:04 pm       
Re: understanding and enco...      Chen, Richard      Sat Nov 10 2001 10:31 pm       
Re: understanding and e...      Chen, Richard      Sat Nov 10 2001 10:58 pm       
Re: understanding and e...      Goodman, Brian J.      Sat Nov 10 2001 11:20 pm       
Re: understanding an...      Chen, Richard      Fri Nov 16 2001 7:11 pm       
Re: understanding...      Bortz, Andrew S.      Fri Nov 16 2001 8:48 pm       
Re: understanding and e...      Lee, Peter      Sun Nov 11 2001 10:13 am       
Re: WebSpider::hasNext() ???      Chen, Richard      Wed Nov 14 2001 12:14 am       

Back to previous screen