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
liraira [26]
3 years ago
7

Assume the existence of a Building class with a constructor that accepts two parameters: a reference to an Address object repres

enting the building's address, and an integer for the square footage of the building. Assume a subclass ApartmentBuilding has been defined with a single integer instance variable, totalUnits. Write a constructor for ApartmentBuilding that accepts three parameters: an Address and an integer to be passed up to the Building constructor, and an integer used to initialize the totalUnits instance variable.
public ApartmentBuilding(Address address, int squareFootage, int totalUnits) {
super(address, squareFootage);
this.totalUnits = totalUnits;
}
Computers and Technology
2 answers:
NikAS [45]3 years ago
3 0

Answer:

public ApartmentBuilding(Address address, int squareFootage, int totalUnits) {

super(address, squareFootage);

this.totalUnits = totalUnits;

}

katovenus [111]3 years ago
3 0

Answer:

It seems you already answered your own question, but let me explain the steps so that it will all be clear for you.

Explanation:

A constructor has no return type, has the name as the class name, and can take parameters.

According to the requirements, the <em>ApartmentBuilding</em> constructor takes three parameters: address, squareFootage, and totalUnits. Inside the body of the constructor, we need to initialize these variables.

Be aware that the address and squareFootage is initialized by using super keyword. That means, the constructor of the parent class - <em>Building</em>  is invoked.

You might be interested in
You are the information security officer at a medium-sized company (1,500 employees). the cio asks you to explain why you believ
Ivahew [28]
If your CIO asks such a stupid question run for the hill, he should not hold that title.
Every company, small, medium or large should have Firewalls, Intrusion Detection, Managed Virus Protection Software at the very least. Windows is the most deployed OS in the world and of course the main target of hackers i.e Viruses. MAC's to a lesser extent and Unix while probably the least vulnerable are still not immune to Viruses/Trojan and other Malware.

Users can still be the victims of trojan horses, phishing scams, and other online fraud. There<span> is no such thing as a 100% safe computer, a </span>Mac<span>, Windows, and even Linux are all capable of being infected with a </span>virus<span> or other malware.
</span>
Lastly, physical access to any computer that is not encrypted is vulnerable.
5 0
3 years ago
This is an example of what type of formula? <br> =(D1+D17)
stepladder [879]

The type of formula that is represented by the given example =(D1+D17) in excel is known as; The SUM Formula function

<h3>What are functions in excel?</h3>

There are different ypes of formula functions in excel such as;

  • SUM
  • COUNT
  • COUNTA
  • IF
  • TRIM
  • MAX & MIN

Now, in this question, the formula we are given is =(D1+D17) and the example it represents is the SUM formula function.

Read more about Excel Functions at; brainly.com/question/14042837

5 0
3 years ago
How do you know when a spreadsheet object is active in a powerpoint presentation?
Ira Lisetskai [31]
It should be under lined, when you press it it should have a different colour
4 0
4 years ago
What is the meaning of local storage?​
Anastaziya [24]

Answer: Local Storage: A hard drive or solid state drive directly attached to the device being referenced. Local Storage would be used to contrast the storage in that unit from the storage on servers in the local network or on the Internet (like cloud storage).

3 0
3 years ago
Describe how checksum detects errors​
Nostrana [21]

Answer:

<h3>For error detection by checksums, data is divided into fixed sized frames or segments. Sender's End − The sender adds the segments using 1's complement arithmetic to get the sum. It then complements the sum to get the checksum and sends it along with the data frames.</h3>

4 0
3 years ago
Other questions:
  • Why is sequencing important in coding
    8·2 answers
  • The number of worksheets a workbook can contain is limited to the ______ of your computer.
    7·1 answer
  • Which business application uses location information to provide a service and is designed to give mobile users instant access to
    5·1 answer
  • What do you think is the meaning of the saying "Sticks and stones may break my bones, but words can never hurt me"? Do think tha
    5·1 answer
  • Assume that two arrays are parallel. Assume the first array contains a person's id number and the second contains his or her age
    5·1 answer
  • How to unblock your Wi-fi if it is blocked by your administrator .
    13·1 answer
  • To create a cell reference in another spreadsheet you must need to start with _______ sign.
    14·1 answer
  • True or False? Voice recognition is the process of determining the meaning of the words spoken by a human.
    7·1 answer
  • Spam is _____.
    8·1 answer
  • the advertisement below is an example of a(n) the advertisement below is an example of a(n) informative advertising objective pe
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!