Computer Science, asked by Farisjalal, 6 months ago

In which of the following cases is the Inline method used for refactoring?
1) In care of too many delegations in the code
2) In care code is duplicated multiple times in one flow.
3) In care there are long methods in code
4) In case function call is bottleneck in the
Performance.

A) 3 and 4
B) 1,3 and 4
C) 1 and 4
D) All the above​

Answers

Answered by pc955392
2

Answer:

option B is the correct answer for your question

Explanation:

pls makes me brainliest and follow me ......☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️

Answered by vijayhalder031
0

Concept

With the aid of this refactoring, you may remove the original method declaration and replace usages of static, instance, and extension methods with their bodies. This refactoring can also be used on a property that has a backing field. You can combine one class into another class using this refactoring. As soon as you merge a class, all of its members are transferred to the class in which the merged class is used, and all of the merged class's usages are updated. As opposed to producing a separate set of instructions in memory, an inline function is one for which the compiler transfers the code from the function specification directly into the code of the calling function. As a result, call-linkage overhead is removed, and important optimization opportunities may be revealed.

Given

Some cases is the Inline method used for refactoring.

Find

Which of the given cases are used in Inline method used for refactoring.

Solution

Cases is the Inline method used for refactoring are:

1) In care of too many delegations in the code

2) In care there are long methods in code

3) In case function call is bottleneck in the.

Hence, the correct option is B) 1,3 and 4.

#SPJ2

Similar questions