#How do I transfer double to another class

1 messages · Page 1 of 1 (latest)

shadow roost
#

with string i can just do
Student stu = new Student(a);

But when I try that with a double
I get incorrect
Student stu2 = new Student(b);

cinder cometBOT
#

This post has been reserved for your question.

Hey @shadow roost! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

potent monolith
#

you're going to have to give some context here

#

what double, what's the error?

wicked plover
potent monolith
#

unless Student just simply doesn't accept that

wicked plover
#

ah yes i just realised calling the same constructor,