Answer:
Polymorphism
Explanation:
You can have a basic button class that gets inherited by other classes.
class Button {
function pushButton(){}
}
class ElevatorButton extends Button{};
class BigRedButton extends Button{};
With these new classes, they inherit from the basic button class. They can decide what happens when the method pushButton() is called.
You don't need to worry about what pushButton() actually does, you can just call it if the object is of the type "Button" and you can expect it to work.
If Dominic is to design a network for Pirate Press he would have to consider and know of the following:
a. Growing capital - he needs to know if the company's sales is growing or is in debt so that he would know what course of action he could take in case he pursues projects for the company.
b. People/Team - the people/team working are the heart and soul of any company and knowing their specific needs and how they work is key to knowing how the company works as one unit
c. Marketing of the product - he needs to know how the product sells in order for him to decide what other strategies he can incorporate to make the product more marketable to people.
Just in case one database gets hacked or crashes they have another to run on
Answer:
day = input("Enter today's day numerically: ")
if "15" in day or "30" in day:
print("It's payday!")
else:
print("Sorry, not a payday.")
Explanation:
Ask the user what day it is and store it in a variable called, day. Write a simple if else statement to check if ut is payday or not. This program can be more advanced by having payday be a variable.
# 2 on the right goes to zipties