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
Alex777 [14]
4 years ago
4

Consider the abstract superclass below: public abstract class Foo { private int a; public int b; public Foo(int aVal, int bVal)

{ ​ a = aVal; ​ b = bVal; } public abstract int calculate(); } Any concrete subclass that extends class Foo ________. Group of answer choices will not be able to access the instance variable a must implement a method called calculate Neither A nor B. Both A and B.
Computers and Technology
1 answer:
geniusboy [140]4 years ago
7 0

Answer:

The answer is "Option Both (A) and (B)."

Explanation:

In the given code an abstract class is defined, that contains two integer private method that is "a and b", and also defines a parameterized constructor, that uses above variable to hold the value, and at the last an abstract method "calculate" is defined.

This method is part of the abstract class, that means it defines outside the class, and this method doesn't use an instance of the class to access it, that's why option A and option B is correct and others were wrong.

You might be interested in
Someone to explain one by one of the 7 C's in communication skills​
antiseptic1488 [7]

Answer:

clear)

be clear about the purpose of the message you’re delivering.

concise)

When communicating messages of this nature it’s important to stick to the point and keep your messages short and simple.

concrete)

When shaping your communication you must ensure that you are specific and that the logic and messages that you’re using fit together, build on each other and support each other.

correct)

It’s essential that both the factual information and the language and grammar you use are correct.

coherent)

If your communications are not coherent they will not be effective.

complete )

When creating a message, it’s important to give the recipient all of the information they need to follow your line of reasoning and to reach the same conclusions you have.

courteous)

You can increase the effectiveness of your communications by being polite and showing your audience that you respect them.

Explanation:

6 0
3 years ago
You have a small business.Due to the recent pandemic you seem to be losing contacts with your suppliers and customers.You want t
Brilliant_brown [7]

Answer:

You can use social media to advertise your product or service you don’t need to work to pay your employees insted create content as a way to help your business grow/expand.

Explanation:

Social media is a big platform and you can eventually find new potential clients and you can benefit yourself instead of paying someone

8 0
3 years ago
Complete the method, isPerfectSquare(). The method takes in a positive integer, n. It returns a boolean that is true if n is a p
ratelena [41]

Answer:

  1. public class Square {
  2.    public static boolean isPerfectSquare(int n){
  3.        int sqrt_n = (int) Math.sqrt(n);
  4.        if(sqrt_n * sqrt_n == n ){
  5.            return true;
  6.        }else{
  7.            return false;
  8.        }
  9.    }
  10. }

Explanation:

Firstly, use sqrt method from Math package to calculate the square root of input n (Line 3). Cast the result to integer and assign it to sqrt_n variable.

Next, square the sqrt_n and check if it is equal to input n (Line 4). If so, return true, if not, return false (Line 4-8).

7 0
3 years ago
____ is the study of how computers can potentially improve without human programming.
Advocard [28]

Answer:

Machine Learning and/or Artificial Intelligence (AI)

5 0
1 year ago
Describe the user interface in other high-technology devices commonly found in the home or office, such as a smartphone, HD tele
Vadim26 [7]

Answer:

Explanation:

Different technologies use different user interface designs in order to make the user experience as easy and intuitive as possible. This varies drastically from one device to another because of the capabilities and size of each device. If we take a fitness/smart watch into consideration, this device does not use pop up menus or side scrolling menus but instead uses large full screen menus where each option nearly fills the entire screen. That is done because the smart watch screens are very small and making everything full screen makes reading and swiping through options that much easier for the user. If the user interface were the same as in a television or smartphone it would be impossible to navigate through the different options on such a tiny screen.

7 0
3 years ago
Other questions:
  • The buses that connect peripheral (typically input and output) devices to the motherboard are often called expansion buses. ____
    5·1 answer
  • The read/write heads of a hard disk gently rest on the hard disk platters in order to read and write the data.
    13·1 answer
  • Type the correct answer in each box. Spell all words correctly.
    6·1 answer
  • Climax Medical Technology, a fast-growing global research firm, has accumulated so much client information that conventional dat
    15·1 answer
  • Dany needs to fact check notes she took on 19th
    13·1 answer
  • The problem analysis phase typically includes which of the following tasks? (Points : 2) Negotiate baseline scope.
    10·1 answer
  • Write a program to help a travelling sales person keep up with their daily mileage driven for business. In your main method, the
    12·1 answer
  • The objective of this task is to use Scapy to estimate the distance, in terms of number of routers, between your VM and a select
    10·1 answer
  • Explain the history of computing device of mechanical era
    7·1 answer
  • What does this map key show
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!