Smitha Jain

Smitha Jain

  • NA
  • 40
  • 5.5k

I need only few methods from that super class.

Aug 21 2022 5:05 AM

Guys
I am inheriting class but I dont need some of the super class's methods I need only few methods from that super class.
How can I exclude those methods or how can I include the methods that I wanted
Ex:
Class A:
   def a (self):
       ...
   def b (...):
       ....
   def c (...):
       ....
    .
    .
    .
Class B (A):
    def d (..):
       ....
    Here I need only two of the super class methods (a and b) so how can I exclude the other methods? ?
Or is there a way to include the needed methods only? ?
Please help!!!!


Answers (1)