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
Rus_ich [418]
3 years ago
9

public class Point { private int x; private int y; public void setx(int x) this.x = x; public void setY(int y) this.y=y; public

void setXY(int x, int y) X=y; ysy; public boolean IsEqual(Point p) return ((p.x == x) && (p.y == y)); public void DisplayPoint() System.out.println("(" + x + " +X+ + y + ")"); public void movePoint(int deltax, int deltay) {!! 'x' is increased by deltax and y is increased by deltay public void SetLocation(Point P) {//make point to have the specified location P. public static void main(String[] args) { // TODO Auto-generated method stub Point P1 = new Point(); Point P2 = new Point(); P1.setx(5); P1.setY(6); P2.setx(5); P2.setY(6); System.out.println(P1.IsEqual(P2)); P2.setXY(3,4); System.out.println(P1.IsEqual(P2)); Given the class 'Point' which has two member variables x, and y. What are x and y for Point object P1 after the end of the main method ? (Pay close attention to the setXY method) x=6, y=5 Ox=6, y= 6 x=5, y= 6 x=5, y= 5
Engineering
1 answer:
PSYCHO15rus [73]3 years ago
7 0

Answer:

x =5

y =6

Explanation:

The reason behind that is that while using the reference P2 we have setted the values of X and Y both as 5 and 6 respectively in the main function.

After setting we are calling the setXY function which sets the value to 3 and 4 for X and Y respectively but does not implement in the value to the instance.

Apart from which setX and setY function are setting the values with respect to the instance variable using "this" keyword.

Hence, the values 5 and 6 are been displayed at the end of the main method.

You might be interested in
Thin film deposition is a process where: a)-elemental, alloy, or compound thin films are deposited onto a bulk substrate! b)-Pho
marshall27 [118]

Answer:

(A) elemental, alloy, or compound thin films are deposited on to a bulk substrate

Explanation:

In film deposition there is process of depositing of material in form of thin films whose size varies between the nano meters to micrometers onto a surface. The material can be a single element a alloy or a compound.

This technology is very useful in semiconductor industries, in solar panels in CD drives etc

so from above discussion it is clear that option (a) will be the correct answer

8 0
3 years ago
Discuss in detail the following methods used to redistribute income and wealth in cash grants?​
aev [14]

Answer:

Redistribution of income and wealth is the transfer of income and wealth (including physical property) from some individuals to others through a social mechanism such as taxation, welfare, public services, land reform, monetary policies, confiscation, divorce or tort law.

-The term typically refers to redistribution on an economy-wide basis rather than between selected individuals.

Interpretations of the phrase vary, depending on personal perspectives, political ideologies and the selective use of statistics.

-It is frequently heard in politics, usually referring to perceived redistribution from those who have more to those who have less. Occasionally, however, it is used to describe laws or policies that cause opposite redistribution that shift monetary burdens from low-income earners to the wealthy.

-

The phrase is often coupled with the term class warfare, with high-income earners and the wealthy portrayed as victims of unfairness and discrimination.

-

Redistribution tax policy should not be confused with predistribution policies. "Predistribution" is the idea that the state should try to prevent inequalities from occurring in the first place rather than through the tax and benefits system once they have occurred. For example, a government predistribution policy might require employers to pay all employees a living wage, not just a minimum wage, as a "bottom-up" response to widespread income inequalities or high poverty rates.

Many alternate taxation proposals have been floated without the political will to alter the status quo. One example is the proposed "Buffett Rule", which is a hybrid taxation model composed of opposing systems, intended to minimize the favoritism of the special interest tax design.

7 0
3 years ago
A cruise missile under test is moving horizontally at Ma =2 in the atmosphere at an elevation of 2000 m (Air temperature is 2 °C
telo118 [61]

Answer: the half-angle "alpha" of the Mach cone = 30⁰

Explanation:

To calculate the  half-angle "alpha" of the Mach cone.

we say ;

Sin∝ = 1 / Ma

given that Ma = 2

now we substitute

Sin∝ = 1 / 2

Sin∝ = 0.5

∝ = Sin⁻¹ 0.5

∝ = 30⁰

Therefore, the half-angle "alpha" of the Mach cone is 30⁰

3 0
4 years ago
In a website browser address bar, what does “www” stand for?
Ludmilka [50]

Answer:

www stands for world wide web

Explanation:

It will really help you thank you.

3 0
3 years ago
For each topic, find the total number of blurts that were analyzed as being related to the topic. Order the result by topic id.
photoshop1234 [79]

Answer:

Explanation: see attachment below

8 0
3 years ago
Other questions:
  • The elevation of the end of the steel beam supported by a concrete floor is adjusted by means of the steel wedges E and F. The b
    12·2 answers
  • Use the orange points (square symbol) to plot the initial short-run industry supply curve when there are 20 firms in the market.
    5·1 answer
  • Why is it important to stop climate change?
    15·2 answers
  • Why is a crank-rocker mechanism more useful than a double-rocker mechanism?
    13·1 answer
  • Chemical materials that are transported are called..
    8·1 answer
  • All sized companies are required to have a written fire prevention plan true or false
    14·2 answers
  • TWO SENTENCES!!! What is something that you have used today that was designed by an engineer? What parts were designed by an eng
    11·2 answers
  • All of these are true about a magnesium part EXCEPT that it:
    8·1 answer
  • Rivet gauge, or transverse pitch is the distance between the Group of answer choices heads of rivets in the same row. centers of
    11·1 answer
  • Question 2
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!