Skip to content

Instantly share code, notes, and snippets.

@udacityandroid
Last active February 7, 2023 13:27
Show Gist options
  • Star 55 You must be signed in to star a gist
  • Fork 39 You must be signed in to fork a gist
  • Save udacityandroid/ad088cd4e920f2a2d778 to your computer and use it in GitHub Desktop.
Save udacityandroid/ad088cd4e920f2a2d778 to your computer and use it in GitHub Desktop.
Android Development for Beginners : Calculate the Price Method
/**
* Calculates the price of the order based on the current quantity.
*
* @return the price
*/
private int calculate price(int quantity {
int price = quantity * 5;
return price;
}
/**
* Calculates the price of the order based on the current quantity.
*
* @return the price
*/
private calculatePrice(int quantity)
int price = quantity * 5;
return price;
/**
* Calculates the price of the order based on the current quantity.
*
* @return the price
*/
private int calculatePrice(int quantity) {
int price = quantity * 5;
return price;
}
@pro-coder-fast
Copy link

option c is correct answer

@Alaaaldeen96
Copy link

C

@JamalAlsanabani
Copy link

It's C

@Sreekaran1704
Copy link

I think the option is C

@Naman7877
Copy link

Naman7877 commented Jul 22, 2021

c
because fulfill all requirements of a method in java

@jitendrakohar
Copy link

Dear sir , the option A and B are wrong answer and the option 3 are right answer

@Emranoo89
Copy link

C

Because Fulfill all requirements of a method in java

@VivekTarun
Copy link

c

@king-martinien
Copy link

C

@Harriskobia
Copy link

Option C is correct

@JuniiiSays
Copy link

Why you guys are answering here. Because of you the new students will not be able to practice there newly acquired code reading skills.

@sherifs121
Copy link

option cuiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii is correct

@sachinbhujbal
Copy link

Option C:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment