ollows: Assume you have declared a method as private static double Calculate Discount (int acct =0,

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 18RQ
icon
Related questions
Question
26).
follows:
Assume you have declared a method as
private static double CalculateDiscount (int acct =0,
double price = 0, double discount= 0), Which of the
following is a legal method call?
A CalculateDiscount (3000.00, 0.02)
B) CalculateDiscount();
None of these is legal
D) CalculateDiscount (200.00)
Transcribed Image Text:follows: Assume you have declared a method as private static double CalculateDiscount (int acct =0, double price = 0, double discount= 0), Which of the following is a legal method call? A CalculateDiscount (3000.00, 0.02) B) CalculateDiscount(); None of these is legal D) CalculateDiscount (200.00)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Returning value from Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage