C Sharp (C#) - Interfaces
Identify the error in this code snippet:
interface IShape {
double Area();
}
class Circle : IShape {
public double Area() {
return 3.14 * radius * radius;
}
}Identify the error in this code snippet:
interface IShape {
double Area();
}
class Circle : IShape {
public double Area() {
return 3.14 * radius * radius;
}
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions