मराठी

What are abstract methods?

Advertisements
Advertisements

प्रश्न

What are abstract methods?

अति संक्षिप्त उत्तर
Advertisements

उत्तर

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 4: Inheritance - EXERCISE [पृष्ठ ७८]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
पाठ 4 Inheritance
EXERCISE | Q 10. | पृष्ठ ७८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×