![keldrickking](/avatars/15978.jpg)
keldrickking
22.09.2019 •
Computers and Technology
Here is a test code segment:
public class mytesterclass
{
public static void main(string[] args)
{
myclass myobject = new myclass (12.4, 20);
int value1 = myclass.some_value;
int value2 = myobject.method1();
int value3 = myclass.method2(20);
}
}
i'm trying to figure out what part of this code is a "class method" and i'm tempted to guess it's it could also be myclass, some_value, or method1 i believe. i'm not the best with coding classifications and would like some .
Solved
Show answers
More tips
- F Food and Cooking How to Determine Healthy, Nutritious Food for Yourself?...
- G Goods and services What Useful Foods Can You Buy at Supermarkets?...
- A Animals and plants How to Properly Care for a Pet Decorative Rabbit at Home?...
- O Other What happens if you get scared half to death twice?...
- F Family and Home What s That Noise When a Kettle Boils? The Science of Water and Steam...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- W Work and Career How much does an honest traffic police officer earn in a day?...
- F Food and Cooking Red Caviar: How to Choose the Best?...
- S Style and Beauty How to Get Rid of a Bruise: Tips and Tricks...
- H Health and Medicine Is Massage Necessary? Facts and Opinions...
Answers on questions: Computers and Technology
- C Computers and Technology What would be the mechanical advantage of the lever be, if the triangular block were moved to a position 40 cm from the edge of the output force side of the plank? !...
- P Physics A ball of mass 10 g is moving with a velocity of 50 m −1 . On applying a constant force on ball for 2.0 s, it acquires a velocity of 70 m −1 . Calculate : (i) the initial momentum...
- M Mathematics The perimeter of the triangle shown on the right is 401 feet. Find the length of each side....
- M Mathematics When a number, a, is first multiplied by 4, then subtracted from 68, the result obtained is three times the sum of a and 4. • Find the value of the square of a....
- C Chemistry What is the total gas pressure in a sealed flask that contains oxygen at a partial pressure of 0.41 atm and water vapor at a partial pressure of 0.58 atm? Label using the correct...
- S Social Studies Why can t PCI alone denote the actual development of a country? Write a reason. What is the present PCI and HDI of Nepal? Find them from any of the sources andwrite themWhat kind...
- E English China s economy is likely to explode over the next ten years. They re making the transition from an agrarian society to an industrial society, and previous societies that went through...
- P Physics . The speedometer readings of a car are shown below. Find the acceleration of the car and its displacement. Time 9:25 am 9:45 am Speedometer 36 km/h 72 km/h...
- B Biology Summarize the political philosophy of john locke (short)...
- M Mathematics Let f(x) be a quadratic polynomial such that f(-4) = -22, f(-1)=2, and f(2)=-1. Let g(x) = f(x)^16. Find the sum of the coefficients of the terms in g(x) with even exponents. (For...
Ответ:
The second option is incorrect because a class method must have a class identifier not an object identifier. What makes myObject an object identifier is the fact that it was created as an instance of the class MyClass in the constructor in line 5 (MyClass myObject= new MyClass(12.4,20);
The answer here should be MyClass.method2(20); Methods must have a set of parentheses, even if it has nothing inside. The first answer has a class identifier but the SOME_VALUE acts much like the Integer.MAX_VALUE; code which stores a constant value and does not actually perform tasks like most methods.
In short, the answer should be the last one but I hope my explanation cleared some things up for you, even if it was a bit more concept heavy than the question probably intended.
Ответ:
Example: 15) y=-5x+2 into -2=-5x-y or 2=5x+y
For 21-29, the numbers in the parenthesis are coordinates (x, y) so uh the equation y=mx+b plug in the m that is given and x and y and then solve for b to complete the equation
Ex: 21) (-8,3) m=2
Y=mx+b
3=2(3)+b
3=6+b
-3=b
So y=2x-3
Do the same to the others