Challenge: Extension Methods
Solidify your understanding of extension methods by writing an extension method on the double data type.
We'll cover the following
Problem Statement
Implement an extension method convertMilesTokms()
on data type double
to convert miles into kilometers.
Create a free account to view this lesson.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Educative's Terms of Service and Privacy Policy