#Help with college Practice book

1 messages · Page 1 of 1 (latest)

zenith saffronBOT
#

<@&987246399047479336> please have a look, thanks.

lament kettle
#

Have you tried running the code yourself?

gusty dagger
#

Yes

#

It said c1 is not declared

#

But if I add another line like
Cricle c1=new Circle();
Then it said c1 is declared already

lament kettle
#

C1 is declared, just not initialized.

gusty dagger
#

So is there error cuz c1 is not initialized?

lament kettle
#

If you run the code you will get the result.

#

We can't see your options there, but try reasoning through it and eliminating some.

#

Think of the state of your objects, and what will logically happen.

gusty dagger
#

What about 500?

#

I can't understand this line
boolean b2=fix(b1);
What is fix a keyboard?

lament kettle
#

What do you think it is?

gusty dagger
#

Probably works same as ! in Boolean?

lament kettle
#

Do you know how methods work?

gusty dagger
#

yes

lament kettle
#

Do you know how you use them?

gusty dagger
#

But there is no .fix it's just fix

#

Dot is missing

lament kettle
#

But that method might be part of the same class.

gusty dagger
lament kettle
#

It acts on the current object.

gusty dagger
#

Got it

#

Thanks for help

lament kettle
#

You're welcome.

marsh wharf
#

on 494 im pretty sure ill print " 5.1 6.1 "

#

hope that hepls?

strange crest
marsh wharf