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
White raven [17]
3 years ago
9

How does the MVVM pattern relate to the Command pattern?

Computers and Technology
1 answer:
bija089 [108]3 years ago
3 0

Answer:

MVVM stands for Model, View,ViewModel. ViewModel act as an interface between view and Model.it internally follows command pattern

Explanation:

Command Pattern contains Invoker(Sender),Command, Receiver. Invoker invokes a command with some data .Command object invokes the corresponding Receiver based on  command and data .Receiver receives the command and data, executes the actual logic for the command.

MVVM follows Command Pattern. View is the invoker which invokes some command (Execute) with parameters. View Model  directs that command with parameters to the corresponding receiver class which actually implements that execute method with the given data/Parameters.

To explain the above concept in simple Example, when we go to hotel we invoke the order using waiter and waiter redirects that to the cook. Cook will prepare your food. Here Customer is the Invoker who invokes the command and waiter is the director who redirects that command to the Receiver. Cook is the Receiver who actually implement that command

You might be interested in
1st answer will get brainliest!
valentina_108 [34]

The answer is program!

5 0
3 years ago
Read 2 more answers
If you have a database with birthdates, and you would like to find everyone who was born before June 16, 1967, what would you en
Tcecarenko [31]

Answer:

<June 16,1967

Explanation:

7 0
4 years ago
Read 2 more answers
Brake fluid is made up of a chemical that:
TEA [102]

A) IS MOSTLY JUST ENGINE Oil.

7 0
3 years ago
Read 2 more answers
What are these receivers called?
AlexFokin [52]

Answer: Cell site / Base station

Explanation:

A mobile network also referred to as the cellular network is refered to as the radio network which is distributed over the land areas which are refered to as the cells.

We should note that each is served by at least one fixed-location transceiver, which is called the cell site or the base station.

4 0
3 years ago
Exercise 8.1.9: Diving Contest Your school is hosting a diving contest, and they need a programmer to work on the scoreboard! Yo
vampirchik [111]

Answer:

def calculate_score(theTuple):

    first, second, third = theTuple

    if first >= 0 and first <=10 and second >= 0 and second <=10 and third >= 0 and third <=10:

         print(first + second+third)

    else:

         print("Range must be 0 to 10")

Explanation:

This line defines the function

def calculate_score(theTuple):

This line gets the content of the function

    first, second, third = theTuple

The following if condition checks if the digits are in the range 0 to 10

    if first >= 0 and first <=10 and second >= 0 and second <=10 and third >= 0 and third <=10:

This calculates the sum

         print(first + second+third)

else:

If number is outside range 0 and 10, this line is executed

         print("Range must be 0 to 10")

4 0
4 years ago
Other questions:
  • Esther has acquired an associate's degree in information technology and certifications in PageMaker and Illustrator. Which caree
    8·2 answers
  • The more resources you have to choose from during an open book test, the better you will do on the test because more
    13·1 answer
  • What kind of firewall can block designated types of traffic based on application data contained within packets?
    7·1 answer
  • “When using a public computer for browsing the Internet, try to use for 1.________ transactions. Also, use 2.__________ browsing
    10·2 answers
  • 5. The stage of engine operation when both the intake and exhaust valves are closed is the _______ stage.
    5·1 answer
  • How Can I add a image in an HTML program?​ please tell
    6·1 answer
  • Compound conditions require a computer to sense whether multiple conditions are true or false.
    9·1 answer
  • Describe the difference between a chained conditional and a nested conditional. Give your own example of each.
    5·1 answer
  • If you pay a subscription fee to use an application via the internet rather than purchasing the software outright, the app is ca
    13·1 answer
  • 01110101<br> +00100100<br> 00010001
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!