If myClass has a constructor with a parameter of type String, select the other constructor that should be included.
a. public void myClass( ) {. . .}
b. public myClass(int value ) {. . .}
c. public myClass(String str1, String str2) {. . .}
d. public myClass( ) {. . .}

Answers

Answer 1

Answer:

d. public myClass( ) {. . .}

Explanation:

A constructor is a special method that is called when an object of a class is created. It is also used to initialize the instance variables of the given class. A class may have one or more constructors provided that these constructors have different signatures. A class that does not have a constructor explicitly defined has a default parameterless constructor.

Having said these about a constructor, a few other things are worth to be noted by a constructor.

i. In Java, a constructor has the same name as the name of its class.

For example, in the given class myClass, the constructor(s) should also have the name myClass.

ii. A constructor does not have a return value. It is therefore wrong to write a constructor like this:

public void myClass(){...}

This makes option a incorrect.

iii. When a constructor with parameters is defined, the default parameterless constructor is overridden. This might break the code if some other parts  of the program depend on this constructor. So it is advisable to always explicitly write the default parameterless constructor.

This makes option d a correct option.

Other options b and c may also be correct but there is no additional information in the question to help establish or justify that.


Related Questions

Which of the following passes an int argument into a method named print? Chose one option and explain why.

o print();
o print()+5;
o print("5");
o print(5);

Answers

Answer:

print(5)

Explanation:

Passing an int argument into the method named print ;

print() ; Here, the print method has no argument as it is empty

print()+5; Here also, the print method has no argument and adding +5 is an invalid syntax.

print("5") ; Here, print takes in an argument, however, the argument is a string due to the fact that 5 is enclosed by quotation marks.

print(5) ; Here, the integer is 5 is passed to the print method.

Accenture is helping a large retailer transform their online sales and services. The Data Analyst audits the client’s customer journey and maps out the kind of data they need to collect at each touch point. How does this help the client achieve their objectives?

Answers

Answer:

d. by increasing their customer knowledge and leveraging that information to improve customer experience

Explanation:

Consumers are at the heart of all businesses as they are the ones who our product are targeted. They purchase these goods and the company makes profit. Therefore, it is paramount for businesses to identify their target consumers in other to understand their preference and serve them accordingly. With data analytics, a consumers purchase history, likes and viewed products may be used to improve relationship between consumers and service providers. Once a consumer's preference is anlysed using data, then this is leveraged to improve the kind of service offered to such consumer leasing to better consumer experience.

The way in which the auditing of the client’s customer journey and mapping out the kind of data they need to collect at each touch point helps the client achieve their objectives is;

A: by updating their sales platform and adding new features

The missing options are;

A. by updating their sales platform and adding new features

B. by shifting the focus away from the customer and towards new products or services

C. by identifying products that are poor sellers and removing them from the inventory

D. by increasing their customer knowledge and leveraging that information to improve customer experience.

Looking at the given options, the one that is correct is Option A. This is because the company will by that medium, introduce new features that would be very useful in making the sales platform to be more efficient.

Now, Accenture is a company that does consultancy services by providing digital solutions to companies to help them to optimize their business operations. Thus, their different tools will help to give this their client an extra edge that will give them a good advantage over their competitors.

Read more about Accenture at; https://brainly.com/question/25702705

The following are three possible logon scenarios. Explain why option (c) below is preferable in terms of system security. a. Welcome to XYZ computing Enter username: jones Invalid username Enter username: b. Welcome to XYZ computing Enter username: smith Enter password: password Invalid access Enter username: c. Enter username: smith Enter password: password Invalid access Enter username: smith Enter password: FpQr56 Welcome to XYZ computing

Answers

Answer:

because the password being used is of high quality

Explanation:

Option C is the most preferable in terms of system security because the password being used is of high quality. Meaning that it contains lower case and capital case letters as well as numbers. It is also a random mix of all three and is not a common word or name. The length of the password is normal but could be longer for better safety. These things make it very difficult and time-consuming for a software program to guess the password, and nearly impossible for an individual to guess.

A data analyst is using the Color tool in Tableau to apply a color scheme to a data visualization. They want the visualization to be accessible for people with color vision deficiencies, so they use a color scheme with lots of contrast. What does it mean to have contrast

Answers

Answer:

Color contrast is the difference in light between font (or anything in the foreground) and its background.

Explanation:

In web accessibility, how well one color stands out from another color determines whether or not most people will be able to read the information.

Contrast makes things look different and stand out

HEEELLPPPPP, ILL GIVE THE BRAIN THING

Which entry by the user will cause the program to halt with an error statement? # Get a guess from the user and update the number of guesses. guess = input("Guess an integer from 1 to 10:") guess = int(guess)
7
-1
5.6
36​

Answers

Can you explain more please??!

write a java program to input two double type numbers and by using suitable mathematical functions print the maximum and minimum numbers out of the two numbers.
[tex]java \: me \: likhna \: ok[/tex]

Answers

Answer:

The program in Java is as follows:

import java.util.Scanner;

public class Main{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 double n1, n2;

 n1 = input.nextDouble();

 n2 = input.nextDouble();

 double Max = Math.max(n1,n2);

 double Min = Math.min(n1,n2);

 System.out.println("Max: "+Max);

 System.out.println("Min: "+Min); }}

Explanation:

This declares the numbers

 double n1, n2;

This gets input for n1

 n1 = input.nextDouble();

This gets input for n2

 n2 = input.nextDouble();

This gets the max of both using the max function

 double Max = Math.max(n1,n2);

This gets the min of both using the min function

 double Min = Math.min(n1,n2);

This prints the max

 System.out.println("Max: "+Max);

This prints the min

 System.out.println("Min: "+Min);

Sum-of-minterms form is a _____. a. compact function notation that represents each literal by a number b. product term having exactly one literal for every function variable c. variable appearance in an expression in true or complemented form d. canonical form of a Boolean equation where the right-side expression is a sum-of-products

Answers

Answer: D. canonical form of a Boolean equation where the right-side expression is a sum-of-products

Explanation:

Sum-of-minterms form is refered to as the canonical form of a Boolean equation such that the right-side expression is the sum-of-products.

It should be noted that the minterms whose sum helps in defining the Boolean function will be the ones that give the 1's with regards to the functions in the truth table.

Let L be the set of exactly those strings over the alphabet \Sigma = {a, b, c, g}, that satisfy all of the following properties: the length of the string is equal to 5n+3, for some natural number n greater or equal than 0; all of the first (leftmost) 2n symbols are elements of the set {b, c, g}; all of the last (rightmost) 3n symbols are elements of the set {a, b}; the symbols at position 2n+1, 2n+2, and 2n+3 (from the left, i.e., after the first 2n symbols but before the last 3n symbols) are elements of the set {c, g}; Write a complete formal definition of a context free grammar that generates L. If such a context free grammar does not exist, state that the context free grammar does not exist, and prove it.

Answers

Answer:

S -> LSR

S -> M

M -> YYY

Y -> c | g

L -> XX

X -> b | c | g

R -> ZZZ

Z -> a | b

Explanation:

This is a long time ago, but I think this does what you want.

Start symbol S expands to LSR and allows you to grow L and R on either side as much as you want. Ultimately S must be replaced by M. Then you have a pattern like LLLLLMRRRRR.

We can then further break down L into 2 times b, c or g, and similar for M and R.

Does anyone know how to fix this? Everytime i make a new page it only types in the middle of the page. I want to type at the top

Answers

Answer:maybe start a new page or try hitting delete

Explanation:

Complete the steps for adding a recurring event.

1. Click
.

2. Then, choose
.

3. Enter the necessary details, and click
.

4. Specify the recurrence details.

Answers

Answer:

which type of questions is this

People who know about phones, what do you think about the phone "Samsung Galaxy A21s"?

Answers

Answer:

iphone is better but if u like it then ok

Explanation:

% Do not modify CalculateSum function maxSum = CalculateSum(userNum1, userNum2, userNum3) maxSum = MaxValue(userNum1, userNum2) + userNum3; end % Define a function MaxValue that returns the largest input value % Function inputs: numA, numB % Function output: maxNum % function maxNum ...

Answers

Answer:

The function in Python is as follows:

def MaxValue(userNum1, userNum2):

   if userNum2>userNum1:

       return userNum2

   else:

       return userNum1

Explanation:

This defines the function

def MaxValue(userNum1, userNum2):

This returns userNum2 if userNum2 is greater than userNum1

   if userNum2>userNum1:

       return userNum2

If otherwise, this returns userNum1

   else:

       return userNum1

A program developed for a Web store represents customer account balances using a format that approximates real numbers. While testing the program, a software developer discovers that some values appear to be mathematically imprecise. Which of the following is the most likely cause of the imprecision?
A. The account balances are represented using a fixed number of bits, resulting in overflow errors.
B. The account balances are represented using a fixed number of bits, resulting in round-off errors.
C. The account balances are represented using an unlimited number of bits, resulting in overflow errors.
D. The account balances are represented using an unlimited number of bits, resulting in round-off errors.

Answers

Answer:

B.

Explanation:

The most likely reason for this would be that the account balances are represented using a fixed number of bits, resulting in round-off errors. Since all of the numbers being used are real numbers they would have a fixed 32 bits of data. When these values are multiplied or divided they can be irrational numbers that never end, and therefore are cut off in order to fit the available data. This would cause the numbers to be rounded and can lead to the answer being imprecise.

applications of kinematics in computer engineering​

Answers

Answer:

There is a wide application of kinematics; it is also used in astrophysics. In mechanical engineering, robotics, and biomechanics, it is used to describe the motion of the system of the joint parts.

Static methods can be called directly from the name of the class that contains the method.

a. True
b. False

Answers

the answer is false.
I would say false because thats not the person that owns it its just in their class

Using only AND, OR and inverter gates to implement the above Boolean equation, how many gates are needed

Answers

Answer: hello your question has some missing data attached below is the missing data

answer : 10 gates

Explanation:

Logic diagram Using only AND, OR and inverter gates

x = A ⊕ B ⊕ C

attached below is the require Logic diagram Using only AND, OR and inverter gates .

number of inputs > 2

number of gates needed = 10

Define a method pyramidVolume with double parameters baseLength, baseWidth, and pyramidHeight, that returns as a double the volume of a pyramid with a rectangular base. Relevant geometry equations: Volume

Answers

Question:

Define a method pyramidVolume with double parameters baseLength, baseWidth, and pyramidHeight, that returns as a double the volume of a pyramid with a rectangular base. Relevant geometry equations:

Volume = base area x height x 1/3

Base area = base length x base width.

(Watch out for integer division)

import java.util.Scanner;

public class CalcPyramidVolume {

   /* Your solution goes here */

   public static void main (String [] args) {

     System.out.println("Volume for 1.0, 1.0, 1.0 is: " + pyramidVolume(1.0, 1.0,   1.0));

     return;

    }

}

Answer:

import java.util.Scanner;

public class CalcPyramidVolume {

   /* Your solution goes here */

   public static void main (String [] args) {

       System.out.println("Volume for 1.0, 1.0, 1.0 is: " + pyramidVolume(1.0, 1.0, 1.0));

       return;

   }

   

   //Begin method definition

   public static double pyramidVolume(double baseLength, double baseWidth, double pyramidHeight){

       

       //First, calculate the base area of the pyramid

       //store the result in a double variable

       double baseArea = baseLength * baseWidth;

       

       //Then, calculate the volume of the pyramid

       //using the base area and the base width

       double volume = 1 / 3.0 * baseArea * pyramidHeight;

       

       //return the volume

      return volume;

   }

}

Output:

Volume for 1.0, 1.0, 1.0 is: 0.3333333333333333

Explanation:

The code above contains comments explaining the important lines of the code. The output of the code has also been provided above.

The parts of the code that are worth noting are:

(i) The return type of the method pyramidVolume should be a double since calculations are done using double values. i.e the method header should be written as

public static double pyramidVolume(){

}

(ii) The method requires three(3) parameters of type double: baseLength, baseWidth and pyramidHeight. These should be included in the method. Therefore, the complete header definition should be:

public static double pyramidVolume(double baseLength, double baseWidth, double pyramidHeight){

}

(iii) The formula for calculating the volume of the pyramid should be:

volume = 1 / 3.0 * baseArea * baseWidth;

Rather than;

volume = 1 / 3 * baseArea * baseWidth;

This is because integer division yields integer result. If 1 / 3 is evaluated, the result will be 0 since the decimal part will be truncated thereby making the result of the volume = 1 / 3 * baseArea * baseWidth will be 0.

Therefore, the work around for that should be to write 1 / 3.0 or 1.0 / 3.0 or 1.0 / 3.

(iv) After the calculation, the result of volume should be returned by the method. This will enable a proper call by the main method for execution.

The register in the CPU is not the same as the RAM.
Group of answer choices

True

False

Answers

The answer is true ..........

When running on its 11.4 V battery, a laptop computer uses 8.3 W. The computer can run on battery power for 7.5 h before the battery is depleted. Part A What is the current delivered by the battery to the computer

Answers

Answer:

The correct answer is "0.73 A".

Explanation:

Given that:

Power,

P = 8.3 W

Voltage,

ΔV = 11.4 V

The current will be:

⇒  [tex]I = \frac{P}{\Delta V}[/tex]

On substituting the values, we get

⇒     [tex]=\frac{8.3}{11.4}[/tex]

⇒     [tex]=0.73 \ A[/tex]

Advantages that excel have over paper and pen work​

Answers

Answer:

You can use formulas to create systems on excel.

Explanation:

Can you think of other businesses that might benefit from using voice response this system?​

Answers

Answer:

call centers benfit big in this field

Explanation:

name the cell range selected in the given worksheet?
plzzz helppppp​

Answers

Answer:

B2:E6,,,,,,,,,,,,,,,,

What component can you use to open windows?
-A servomotor
-An LED
-A buzzer
-An ambient light sensor

Answers

Answer:

A servomotor.

Explanation:

Because you can only open the window with the force given by the servo motor.I am not sure tho

What tells the hardware what to do and how to do it?
Central Processing Unit (CPU)

Software

Hardware

Hard Drive (HDD)

Answers

Answer:

Software

Explanation:

The software tells the hardware what to do and how to do it.

the software tells it what to do and how to do becuase hard ware is just a name and a hard drive contains the soft ware wch tells the hard wear what to do and how to do it

What are the main dimensions of information system and their components

Answers

Answer:

The dimensions of information systems include organizations, management, and information technology. The key elements of an organization are its people, structure, business processes, politics, and culture. An organization coordinates work through a structured hierarchy and formal standard operating procedures.

Synapse is not working and is crashing every time you attach it. What should you do?

1. Contact a staff
2. Wait for it to be fixed
3. delete it
4. Spam dm everyone

Answers

Contact a staff memeber

You are the IT administrator for a small corporate network. The employee in Office 1 occasionally needs a previous version of her report files. You need to configure her computer so that you can restore the computer to a point in time if needed. In this lab, your task is to complete the following:
Turn on system protection on the C: volume and set a maximum of 5% of disk space for system protection. Turn on system protection on the D: volume and set a maximum of 5% of disk space for system protection. Create a manual restore point. When naming the restore point, choose your own name for the restore point.

Answers

Answer:

Explanation:

Assuming you have Windows 8 or 10 as the operating system, you would need to do the following. In the search input in the taskbar search for "Create a System Restore Point". In this window, navigate to the System Protection tab. Here, you need to click on the drive you want, we can do C first, and click on the button that says "configure". Here you want to turn on System Protection and set the disk space to 5%. Now click apply and ok and repeat for drive D.

Once that is done you will need to create a manual restore point by clicking the button that says create and giving it the name of your choice.

What is not an advantage of a computer network?


Select one:

A.Remote Information Access

B.Interaction among cooperative application programs

C.Social Engineering

D.User Communication

E.Resource Sharing​

Answers

Answer:

C. Social Engineering

Explanation:

Social engineering can be defined as an art of manipulating people, especially the vulnerable to divulge confidential information or performing actions that compromises their security.

Basically, it is a manipulative strategy or technique that involves the use of deceptive and malicious activities on unsuspecting victims in order to gain unauthorized access to their confidential or private information for fraud-related purposes. Some examples of social engineering attacks include quid pro quo, spear phishing, baiting, tailgating, water-holing, vishing, pretexting, phishing, etc.

Phishing is an attempt to obtain sensitive information such as usernames, passwords and credit card details or bank account details by disguising oneself as a trustworthy entity in an electronic communication usually over the internet.

Furthermore, phishing is a type of fraudulent or social engineering attack used to lure unsuspecting individuals to click on a link that looks like that of a genuine website and then taken to a fraudulent web site which asks for personal information.

In conclusion, social engineering being a form of cyber attack is not an advantage of a computer network.

Identify the correct statements about run-time errors. Choose all that apply.
Run-time errors occur when the program is running.
Run-time errors cause the program to halt.
Run-time errors cause the program to restart.
Run-time errors occur when a numeric value is expected but a text value is entered.
Run-time errors occur when a text value is expected but a numeric value is entered.
Run-time errors cause the program to run fast.
DONE

Answers

Explanation:

1. Run-time errors occur when the program is running.

2. Run-time errors cause the program to halt.

4. Run-time errors occur when a numeric value is expected but a text value is entered.

5. Run-time errors occur when a text value is expected but a numeric value is entered.

Which year was the Apple 2 released?
A) 1979
B). 1973
C). 1980
D). 1977​

Answers

Answer:

1977

Explanation:

Apple 2 was released in April 19th 1977

it was released April 1977
Other Questions
Madame Vidal, Je voudrais _____ presenter a ma copine.1 - vous2 - te 3 - la jack has a jar of coins. there are 12 pennies 3 nickels 9 dimes and 6 quarters in the jar. f Jack randomly chooses a coin from the jar, what is the probability that he chooses a nickel? Can you help find the ratio? A Ferris wheel car moves from point C to point D on the circle shown below:Circle A is shown with points C and D on the circle and the central angle C A D marked 45 degrees. The diameter is 15 feet.What is the arc length the car traveled, to the nearest hundredth? 5.89 feet 6.23 feet 7.46 feet 8.15 feet 4. What does the King want Holmes to find? F r e e points if you can answers these questions. Get 4 or the most question correct and ill mark brainliest. Martyrs and those who believe they possess thetruth both... Arteriosclerosis and atherosclerosis put a person at risk for: A) Diabetes B) Cancer C) Asthma D) Heart attack, stroke, and congestive heart failure how the environment can effect the traits of plants and animals and how plants and animals may change their characteristics in order to adapt to changes in their environment? 13. Federico tiene un examen maana."Tiene que estudiarO Tiene sedO Tienen hambreO Tiene prisaO Tienen ganas de ver una pelcula Which civilization emerged between the Indus and Ganges rivers? Tabitha was shooting free throws in gym class. She completed 7 of the shots, which was a third of 4 more than Joan completed. What is the number of free throws, n, that Joan completed?] Determining which computer platform (operating system) would be best for a particular student often depends on what the student wants to study and in which industry she or he wants to enter after graduation. Students who plan to study graphic design or want to focus on photo production or publishing should strongly consider the __ platform since it is generally considered the industry standard in those fields. You have an application that you would like to run on your Windows workstation every Monday at 3:00 p.m. Which tool would you use to configure the application to run automatically If two coplanar lines are cut by a transversal so that corresponding angles are *blank*congruent, then the lines are(parallel/perpendicular/skew). 1. Why are fewer customers entering local bank branches?(Select all that apply) Mobile phone appsOnline bankingDue to the sophistication of ATM machinesLimited branch hours2. What type of business are banks relying on to maintain the brick-and-mortar branches.A. New accounts and loansB. Account transfers C. Cash withdrawalsD. Check deposits3. What is the primary reason a consumer needs to walk into a bank branch?A. Withdraw fundsB. Make a deposit C. Open a new account D. Transfer funds Which mathematical property is demonstrated below? 3 + 0 = 3Identity PropertyIndemnify PropertyIdiocy PropertyIdolatry Property NEED HELP PLSSSS I DONT KNOW THE ANSWER PLEASE HELLLLPPPPPP PLEASSEEEE I A BEGGGING YOU Why might a sociologist look at the amount of fresh fruit and vegetables available in a neighborhood?