+1 vote
in Class 12 by kratos

What is abstract method? Give a suitable example to illustrate the same.

1 Answer

+1 vote
by kratos
 
Best answer

Abstract Method: An abstract method is a method defined in the base class, but does not require code for the implementation.

e.g.,

Class teacher: def entry (self):

teach#=int(input(“Enter No”))

def display ( ):

print (self, teach #)

...