Skip to content

Instantly share code, notes, and snippets.

@surendra554
Forked from udacityandroid/Option A
Created February 13, 2020 10:02
Show Gist options
  • Save surendra554/2c6a403005b0989a9a54c0ba52357df0 to your computer and use it in GitHub Desktop.
Save surendra554/2c6a403005b0989a9a54c0ba52357df0 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;
}
@surendra554
Copy link
Author

android app development declaration method

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