B the services provided by the provider
I added a decimal format to keep all decimals within the hundredths place. I also changed the calcTip method to void and the argument to a double. Void means the method doesn't return anything and changing bill to type double let's us pass numbers with decimals to the calcTip method. I hope this helps!
Answer:
The correct answer to the following question is option 4.
Explanation:
The private class does not mean that the package-private, it means that no other class can see its members.
It is used in creating the building blocks which is implementing the internal functionality that you don't want to visible to the other projects using the library.
We can use private constructor to ensure that more than one object cannot be created at the time.