What are the two parts of every method? Describe them.

What will be an ideal response?


A method header-A method's header provides information about how other methods can interact with it. A method header is also called a declaration.A method body between a pair of curly braces-The method body contains the statements that carry out the work of the method. A method's body is called its implementation. Technically, a method is not required to contain any statements in its body, but you usually would have no reason to create an empty method in a class. Sometimes, while developing a program, the programmer creates an empty method as a placeholder and fills in the implementation later. An empty method is called a stub.

Computer Science & Information Technology

You might also like to view...

Eight bits is a byte. What is the term used by programmers for 4-bits?

A. nibble B. fifty cents C. Heptabit D. There is no special term.

Computer Science & Information Technology

In the Timeline, next to the layer names are three columns: the Show or Hide All Layers column, the Lock or Unlock All Layers column, and the Show All Layers as ____ column.

A. Frames B. Symbols C. Tweens D. Outlines

Computer Science & Information Technology

The ________ command allows you to hide elements such as comments so they do not display

A) Show Markup B) Show All C) Hide Comments D) Show/Hide

Computer Science & Information Technology

The Future value (Fv) at the end of the time period in an Excel function is usually ________ for loans

A) the same as the principal B) zero C) half the principal D) twice the principal

Computer Science & Information Technology