1.

A class in which one or more methods are only implemented to raise an exception is called an abstract class.(a) True(b) FalseI have been asked this question in examination.This intriguing question originated from Polymorphism topic in chapter Classes and Objects, Inheritance, Polymorphism, Encapsulation and Exception Handling of Python

Answer»

The correct choice is (a) True

The EXPLANATION is: A class in which ONE or more METHODS are unimplemented or implemented for the methods throw an EXCEPTION is CALLED an abstract class.



Discussion

No Comment Found

Related InterviewSolutions