Home > Back-end >  Why I created the constructor obviously he always gave me an error that no constructor?
Why I created the constructor obviously he always gave me an error that no constructor?

Time:10-17

Bank Bank=new Bank (" agricultural Bank ");
//in the agricultural bank create account
Bank. The list. The add (new Count (" zhang ", "222222"));



CodePudding user response:

BBS is all newbie question, why is this?
I think the first thing you have to improve your efficiency question to ask

CodePudding user response:

The compiler can give a hint? Or directly give you advice?

CodePudding user response:

refer to the original poster three forks in the road, the difficult choice response:
Bank Bank=new Bank (" agricultural Bank ");
//in the agricultural bank create account
Bank. The list. The add (new Count (" zhang ", "222222"));


How do you know you don't see bank have a constructor?

CodePudding user response:

If there is a parameter defines the structure, but also to define a no structure, so as not to report errors,
  • Related