Answer:
Explanation:
The following code is written in Java. It creates the Rectangle class with the height and width variables. The constructor takes these variables as parameters to create Rectangle objects. It creates the get_perimeter method that sums up two of each side in order to get the perimeter of the Rectangle. A get_area method multiplies the height by the width to get the area. Finally, a resize method takes in a double factor variable and multiplies the height and the width by the factor to get a resized Rectangle object.
class Rectangle {
double height, width;
public Rectangle(double height, double width) {
this.height = height;
this.width = width;
}
public double get_perimeter() {
return (this.height + this.height + this.width + this.width);
}
public double get_area() {
return (this.height * this.width);
}
public void resize(double factor) {
this.height *= factor;
this.width *= factor;
}
}
Answer: Personalization
Explanation: Personalization technique in the websites is approach towards any individual in which he/she can describe their like or dislike and gets to know about the user's need by which they search for any particular fashion, their history of search etc.In this the person displays their liking and the websites starts to display those content which are appealing to the particular user.
Answer:
in the body part of the declaration or definition
Explanation:
In functional programming the scope of a variable is in the body part of the declaration or definition. Meaning that as soon as it is declared, whatever body it is in can call and use that variable but not any code outside of that body. For example, in the below code variable (var1) is declared inside func1 and therefore can be used by any code inside the body of func1 but not by code inside func2 since it is outside the body of func1.
void func1() {
int var1;
}
void func2() {
var1 = 2 // This will not work, since var1 is only available in func1()
}