147k views
1 vote
Create a class called TabletCamera and a class called Facial_recognition that will be the base classes of a derived class called BioTablet g

1 Answer

1 vote

Answer:

class TabletCamera(object):

def __init__(self, df, **kwarg):

pass

class Facial_recognitionMixin(object):

def myMethod(self, df, **kwarg):

pass

class BioTablet( TableCamera, Facial_recognitionMixin):

def __init__(self, df, **kwarg):

super().__init__(df, **kwarg):

self.myMethod()

Step-by-step explanation:

The object oriented python source code defines three classes, "TabletCamera" is the main parent or base class, "Facial_recognitionMixin" which is a mixin and a parent class, and "BioTablet" is the child class.

The child class inherits all the attributes from the main parent class and the mixin. This form of multiple inheritance is done for convenience.

User Jose Magana
by
4.7k points