Re: mcq
- From: rossum <rossum48@xxxxxxxxxxxx>
- Date: Thu, 31 May 2007 19:23:40 +0100
On 31 May 2007 11:09:40 -0700, FX <taranfx@xxxxxxxxx> wrote:
Given:
1. class Super {
2. public float getNum() { return 3.0f; }
3. }
4.
5. public class Sub extends Super {
6.
7. }
Which method, placed at line6, causes compilation to fail?
A. public void getNum() { }
B. public void getNum(double d) { }
C. public float getNum() { return 4.0f; }
D. public double getNum(float d) { return 4.0d; }
You forgot to include your instructor's e-mail. Without that we
cannot send in the answers to your homework. I am afraid you will
have to do it yourself.
How about trying to compile the four different options provided and
see which one fails? You never know, you might actually learn
something.
rossum
.
- References:
- mcq
- From: FX
- mcq
- Prev by Date: Re: buggy regexp
- Next by Date: Re: mcq
- Previous by thread: mcq
- Next by thread: Re: mcq
- Index(es):
Relevant Pages
|