1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
alexdok [17]
2 years ago
15

Zohan uses the following analogy to describe a concept of object-oriented programming. A button can have many uses. When it is p

ressed, it can cause a variety of different outcomes, such as opening a door or changing the volume. But you don't need to know what the button is going to do in order to operate it-you just push it. Which concept is he most likely talking about?
a) polymorphism
b) inheritance
c) encapsulation
d) overriding
​
Computers and Technology
1 answer:
Vika [28.1K]2 years ago
4 0

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.

You might be interested in
The system where the unit of measurement is centimeter
aleksklad [387]

Answer:

International System of Units

Explanation:

3 0
3 years ago
The graph of which function has an axis of symmetry at x=-1/4​
yuradex [85]

Answer:

axis of symmetry is the x value of the vertex

for

y=ax^2+bx+c

x value of vertex=-b/2a

first one

-1/2(2)=-1/4

wow, that is right

answer is first one

f(x)=2x^2+x-1

Explanation:

3 0
3 years ago
Hello Everyone.<br>I am new here can anyone help me<br>​
sergejj [24]

Welcome to Brainly!

I am just an Expert user (I was originally gonna be a co-mod, but decided not to take the role) who wants to help! On this website/app, you can ask/answer questions! If you ever need help, this website is the place to go! Just make sure you don't break the guidelines and as Sniper would say, "Be polite"

6 0
3 years ago
Read 2 more answers
Will a tablecloth that is 155 cm long cover a table that is 1.6 m long?
dimaraw [331]
Hello There!

This is just a conversion. 
155cm = 1.55m
Therefore, your answer is no it won't

Hope This Helps You!
Good Luck :) 

- Hannah ❤
3 0
4 years ago
Read 2 more answers
Assume that an O(log2N) algorithm runs for 10 milliseconds when the input size (N) is 32. What input size makes the algorithm ru
NARA [144]

Answer:

An input size of N = 128 makes the algorithm run for 14 milliseconds

Explanation:

O(log2N)

This means that the running time for an algorithm of length N is given by:

F(N) = c\log_{2}{N}

In which C is a constant.

Runs for 10 milliseconds when the input size (N) is 32.

This means that F(32) = 10

So

F(N) = c\log_{2}{N}

10 = c\log_{2}{32}

Since 2^5 = 32, \log_{2}{32} = 5

Then

5c = 10

c = \frac{10}{5}

c = 2

Thus:

F(N) = 2\log_{2}{N}

What input size makes the algorithm run for 14 milliseconds

N for which F(N) = 14. So

F(N) = 2\log_{2}{N}

14 = 2\log_{2}{N}

\log_{2}{N} = 7

2^{\log_{2}{N}} = 2^7

N = 128

An input size of N = 128 makes the algorithm run for 14 milliseconds

5 0
3 years ago
Other questions:
  • Question 11
    11·1 answer
  • A voice engineer is setting up a Cisco 2951 Integrated Services Router with Cisco Unified Communications Manager Express. To ena
    6·1 answer
  • During the software planning process, Rick, a project manager, finds that his team has made an incorrect estimation of funds. Wh
    7·2 answers
  • In Microsoft word when you highlight existing text you want to replace , you're in?
    15·1 answer
  • What formula would you enter to add the values in cells b4, b5, and b6?
    10·1 answer
  • You are given a 11-bit floating point representation with 1-sign bit, 3 bits for the exponent, and 7-bits for the mantissa. Expr
    9·1 answer
  • 2. What is the first part of the 3D printing process ?
    11·1 answer
  • Limited time only for christmas give yourself free 100 points YES YES yes yes yes
    6·2 answers
  • Explain download as used in computing environment.
    14·1 answer
  • Classes that depend on field names from parent classes are said to be ____ because they are prone to errors.Group of answer choi
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!