English

What are abstract methods?

Advertisements
Advertisements

Question

What are abstract methods?

Very Short Answer
Advertisements

Solution

Abstract methods are methods declared in a parent class without a complete implementation. They are intended to be implemented (overridden) by derived classes.

def display(self):
    raise NotImplementedError
shaalaa.com
  Is there an error in this question or solution?
Chapter 4: Inheritance - EXERCISE [Page 78]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 4 Inheritance
EXERCISE | Q 10. | Page 78
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×