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
anzhelika [568]
3 years ago
11

Define the missing method. use "this" to distinguish the local member from the parameter name.

Computers and Technology
2 answers:
Leto [7]3 years ago
4 0

Answer:

Explanation:

Java Code

class Students{

   private String name;

   private String rollNumber;

   public void setNameAndRollNumber(String name, String rollNumber){

       this.name = name;

       this.rollNumber = rollNumber;

   }

}

Code Explanation

In setNameAndRollNumber method there are two type variables, one is member variables which are associated with class and the second one are method parameters which are being past from external class.

If we have both variables name similar to member variables then to distinguish between member variable and parameter, we need to add "this" before member variable to let compiler know that with "this" annotation we are changing value of member variable not parameters variable.

If we don't use "this" with variable name then the compiler will give preference to parameters variable .

mestny [16]3 years ago
3 0

method_missing in the Ruby programming language is part of the search algorithm and is a powerful way to capture objects.

<h2>Further explanation </h2>

Method is a collection of programs that have names. Method is a means for programmers to break a program into small parts to make it more complex so that it can be used repeatedly.

Method is an operation in the form of functions that can be done by an object. The method is defined in the class but is called via the object. For example, in the pear object: there are methods to grab taste, peel, and others

The parameter is the place of storage (variable) in the function, which is used to carry out data from the caller into the function. The parameter is located between brackets (and) after the identity of the function, and a function can have several parameters separated by commas.

Types of Parameters

  • Function Parameters or also referred to as Formal Parameters are local variables that are established in the function declaration (not definition), which is a repository for the values ​​of the arguments given when calling a function.
  • Arguments are parameters that accompany function calls. is a place where you can provide data to be used in a function that is called and given when calling that function.

Learn More

programming method brainly.com/question/13540854

parameters and functions brainly.com/question/13540854

Details

Class: high school

Subjects: Computers and Technology

Keywords: methods, functions, parameters

You might be interested in
What is a limitation of 5G mmWave, despite its high speed?
Allushta [10]

The limitation of 5G mmWave, despite its high speed, is the fact that they have a short range.

  • 5G simply means the fifth generation of wireless technology that has great speed and provides connectivity to cellphones.

  • mmWave is the higher frequency radio band that is very fast. It should be noted that the 5G mmWave is super fast and is being used by large organizations to improve their work.

  • The main limitation of 5G mmWave is that for one to use it, one has to be close to the 5G tower. This is why it's hard for people living in rural areas to benefit from it unless it's situated close to them.

  • It should be noted that despite the fact 5G offers greater bandwidth, which is vital in relieving network congestion, there are still more improvements to be made in order for everyone to benefit.

In conclusion, the limitation of 5G mmWave, is that they have a short range.

Read related link on:

brainly.com/question/24664177

6 0
2 years ago
Two strategies for keeping your files in sync
zlopas [31]

Answer:

1. MS Cloud

2. G Drive

Explanation:

5 0
3 years ago
Plz plz plz plz plz plz plz plz plz plz plz pl plz plz plz plz plz plz plz plz plz plz plz plz olz plz plz
zvonat [6]

REM PROGRAM TO DISPLAY AVERAGE OF TWO NUMBERS

CLS

INPUT “ENTER FIRST NUMBER”; A

INPUT “ENTER SECOND NUMBER”; B

INPUT “ENTER THIRD NUMBER”; C

AV = (A + B + C) / 3

PRINT “AVERAGE OF THREE NUMBERS”; AV

END

hope this helpz

6 0
3 years ago
Will somebody please explain to me HTML?
larisa86 [58]

Answer:

Hypertext Markup Language (is also known as html) is the standard markup language for creating web pages and web applications.

3 0
3 years ago
Which kind of photography takes attractive photos of products to make them stand out?
CaHeK987 [17]

Answer:

See there are multiple ways to get a perfect shot of products to stand out but the most affective according to me are explained below :-

  • Macro shooting - These are close shots u can say really close just to show the product more attractive and u can see these types of shots in every advertisement.
  • Background shooting/shots - Opposite of macro shots.
  • 3d shots - These are 360° shots.

Tip :- Use wide aperture like F2 and right aperture for right shots.

Hope it helps!

3 0
3 years ago
Other questions:
  • Which of the following is not a typical step in the ethical hacking process? A. Planning B. Discovery C. Attack D. Recovery
    5·1 answer
  • How can u refer to additional information while giving a presentation
    15·1 answer
  • andy accidentally saved a file in the wrong folder. what is the quickest way to move the file? create a new file and save it in
    8·2 answers
  • Program 4: But I haven’t taken Calculus yet! OK – we admit, this one might look nasty, but read on because it’s not that bad. On
    11·1 answer
  • People are able to predict future events to some extent because: (Select all that apply)
    11·1 answer
  • When an important file is saved on two different computers, what is the name of the file that is housed on the second computer?
    11·1 answer
  • Can web sites contain copyright material? <br> Yes <br> No
    10·2 answers
  • Which of the following best describes the purpose of a design specification?
    14·2 answers
  • What should be included in research for a problem statement? Select all that apply
    13·2 answers
  • Utilizando o padrão de medidas e unidades do National Institute of Standards and Technology, em que 1 KB é igual a 1.000 Bytes,
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!