Quick Abstract Method Question

  • Thread starter Thread starter z_learning_tester
  • Start date Start date
Z

z_learning_tester

I've read that a class with an abstract method becomes an abstract class.
That if only one method is abstract, then the class must also be so labled.

Does that make *all* methods of that class abstract?

Thanks!

Jeff
 
z_learning_tester said:
I've read that a class with an abstract method becomes an abstract class.
That if only one method is abstract, then the class must also be so labled.

Does that make *all* methods of that class abstract?

No. You can have an abstract class with 10 concrete methods and one
abstract method. A concrete class derived from the abstract class only
needs to implement the single abstract method.
 
Perfect.
Thanks!

Jeff

Jon Skeet said:
No. You can have an abstract class with 10 concrete methods and one
abstract method. A concrete class derived from the abstract class only
needs to implement the single abstract method.
 
Back
Top