Jump to content

what method? what??  :huh:

|CPU: Intel i7-5960X @ 4.4ghz|MoBo: Asus Rampage V|RAM: 64GB Corsair Dominator Platinum|GPU:2-way SLI Gigabyte G1 Gaming GTX 980's|SSD:512GB Samsung 850 pro|HDD: 2TB WD Black|PSU: Corsair AX1200i|COOLING: NZXT Kraken x61|SOUNDCARD: Creative SBX ZxR|  ^_^  Planned Bedroom Build: Red Phantom [quadro is stuck in customs, still trying to find a cheaper way to buy a highend xeon]

Link to post
Share on other sites

Uhmm to implement is to carry out in other words. Implementing this method would be: carrying out/doing/start this method

|CPU: Intel i7-5960X @ 4.4ghz|MoBo: Asus Rampage V|RAM: 64GB Corsair Dominator Platinum|GPU:2-way SLI Gigabyte G1 Gaming GTX 980's|SSD:512GB Samsung 850 pro|HDD: 2TB WD Black|PSU: Corsair AX1200i|COOLING: NZXT Kraken x61|SOUNDCARD: Creative SBX ZxR|  ^_^  Planned Bedroom Build: Red Phantom [quadro is stuck in customs, still trying to find a cheaper way to buy a highend xeon]

Link to post
Share on other sites

I think it's a general way of just saying "Write a method".

public void Example(){    // ...}

You might get a question that says "Implement a method to do blah blah blah" which means "Write a method to do blah blah blah".

// Example: Implement a method that returns the sum of two integers.public int Sum(int a, int b){    return a + b;}

It can also more specifically mean "Implement the methods from an interface/abstract class" but this is just saying "Finish writing a pre-defined method" so if you haven't yet learned about interfaces or abstract classes yet, don't worry about it.

Link to post
Share on other sites

I think it's a general way of just saying "Write a method".

public void Example(){    // ...}

You might get a question that says "Implement a method to do blah blah blah" which means "Write a method to do blah blah blah".

// Example: Implement a method that returns the sum of two integers.public int Sum(int a, int b){    return a + b;}

It can also more specifically mean "Implement the methods from an interface/abstract class" but this is just saying "Finish writing a pre-defined method" so if you haven't yet learned about interfaces or abstract classes yet, don't worry about it.

okay i get it. thanks.  

Link to post
Share on other sites

What does it mean? Any examples?

Well to implement a method means that the method doesn't have to have a method body yet, but in the future your program will add the necessary body info. Well atleast that's what i think it means, don't quote me on this :P

Link to post
Share on other sites

Well to implement a method means that the method doesn't have to have a method body yet, but in the future your program will add the necessary body info. Well atleast that's what i think it means, don't quote me on this :P

Quoted ;D

 

Implementing a method just means to create or use a method, depends on the context which one.

Link to post
Share on other sites

In C and C++ you can have a declaration to tell the compiler that there is going to be a function with a certain name, return value and parameters. You do that like this
void MyFunction(int arg1, float arg2);

Then later on you can define or implement the function by giving it a body. You do that like this:
void MyFunction(int arg1, float arg2)

{

  printf("%f\n", (float)arg1 + arg2);

}

 

I am not sure if you were asking this, your question is very vague.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×