Aim Create a class called TabletCamera and a class called Facial_recognition that will be the base classes of a derived class called BioTablet. Steps for Completion Create a TabletCamera class that will be initialized with a pixels attribute. Create a Facial_recognition class with a scan_face method that prints the message, Scanning Face... Create a BioTablet class that inherits from both the TabletCamera and Facial_recognition classes. At the bottom of the script initialize an instance of the BioTablet class and pass it the value "12MP". Then we call the scan_face method and also print out the pixels attribute. Run the script with python3 main.py command and we should have an output that looks like this: Scanning Face...
Aim
Create a class called TabletCamera and a class called Facial_recognition that will be the base classes of a derived class called BioTablet.
Steps for Completion
-
Create a TabletCamera class that will be initialized with a pixels attribute.
-
Create a Facial_recognition class with a scan_face method that prints the message, Scanning Face...
-
Create a BioTablet class that inherits from both the TabletCamera and Facial_recognition classes.
-
At the bottom of the script initialize an instance of the BioTablet class and pass it the value "12MP". Then we call the scan_face method and also print out the pixels attribute.
Run the script with python3 main.py command and we should have an output that looks like this:
Scanning Face...
12MP
Code should be based off of the screenshot
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images