Quiz on Extension Methods

Evaluate yourself on what you have learned about extension methods.

1

Which of the following is the correct declaration for a Movie class with extension methods?

A)
public class MovieExtensions
{
    // The rest of the class will be here
}
B)
public static class MovieExtensions
{
    // The rest of the class will be here
}
C)
public class static MovieExtensions
{
    // The rest of the class will be here
}
D)
public class MovieExtensions static
{
    // The rest of the class will be here
}
Question 1 of 20 attempted

Get hands-on with 1000+ tech skills courses.