Link to home
Start Free TrialLog in
Avatar of dervisakyuz
dervisakyuz

asked on

c++ and java

hello
i cant do this, could  you write in java pls?
int AEC::doAEC(int d, int x);

  float AEC::getambient() {
    return s0avg;
  };
  void AEC::setambient(float Min_xf) {
    dotp_xf_xf = Min_dotp_xf_xf = NLMS_LEN * Min_xf * Min_xf;
  };
};
ASKER CERTIFIED SOLUTION
Avatar of Mayank S
Mayank S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> int AEC::doAEC(int d, int x);

Is that an non-implemented method? If so, it has to be defined abstract in Java:

abstract int doAEC ( int d, int x ) ;

You can also mark all methods public if they are to be accessed by other classes outside the package.
Avatar of dervisakyuz

ASKER

thank you
ervisakyuz, that was a link to an older question of yours which you had already closed. And the last comment on that question which are given by Webstorm are effectively the same as what I posted here (though he posted them on his own, on that page). Webstorm, do you disagree? Either you should not have opened this question, or perhaps accepted my comment as answer.

My suggestion : reopen this one and split.
Or accept yours only and reopen the older question to change B-grade to A.
Ok, I'll ask Venabili.
(I go for your second suggestion because I guess I answered this one entirely, and you deserved an A grade in the last one for your help.)
i ask two questions on the other links.Both Webstorm reply my answers.mayankeagle next time i will accept your comment.I am new here so this mistakes may be tolerable.
thanks.
>> i ask two questions on the other links

You asked them in that question after you closed it. You should not have asked this question if you were asking them there. When I posted my comments here, I did not care whether you have asked the same question anywhere else or not because for me - this is an open question which needs a solution, so I posted my comments for it.

>> Both Webstorm reply my answers

That was on the other question, not this one. And while posting my comments on this one, I did not look at what was happening on that Q after it got closed.
ok you are right but this is not the problem now. i have to finish my project on monday so it is the problem and i need help.opening another question closing this, sperating  points...etc. also i dont know how to do these things.
Don't worry, Venabili will help with the admin stuff like re-opening, etc. For your other question, I don't know the answer so I'd wait for other experts to post and help.
Yes, I think it deserves an A.