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
What type of power flaw involves a fluctuation in voltage levels caused by other devices on the network or by EMI?
HACTEHA [7]

Answer:

noise is the correct answer for the above question.

Explanation:

  • The noise is a term which is a barrier in the network of communication. It forces the signals to make a delay in data transfer. It is caused by any device or mechanism.
  • For example, if any data is transferring, but some device makes fluctuation in wire, then the communication voltage is disturbed.
  • The above question asked about the term which born with the help of some devices and it caused the fluctuation in the voltage. So the term is known as noise.
4 0
4 years ago
Give two differences between EIRGP and RIP.
qaws [65]

Answer and Explanation:

Difference between EIRGP and RIP :

  • RIP stands for routing information protocol whereas EIRGP stands for enhanced IGRP, IGRP is interior gateway routing protocol
  • EGRIP is more based on the link where as RIP is more based on routing
  • There is also references in their working operation.
  • Differences in updates and refreshing.  

7 0
4 years ago
why backupdocs.com keeps giving computer system update with regards to pdf documents savings? #backupdocuments
prohojiy [21]

The computer system update will ask a question to update pdf documents or not.

<u>Explanation</u>:

  • The computer system update will ask a question to update pdf documents or not.
  • Backupdocs.com is a website used to back up all the data contained in the computer system.
  • Generally, it will ask the user the questions to backup which data and which data should not be backed up.
  • So when we select the backup option it will ask the user to confirm backup or not including all the documents.
  • So backupdocs.com will be giving an update to the computer system regarding the pdf documents savings.

 

6 0
3 years ago
you just bought a new hard drive for your computer to be used as a secondary hard drive to store all your files after installing
almond37 [142]
The harddrive needs to be partitioned, much like partitioning a room, this is were you allocate space to be used, and used by who. Secondly, a file system needs to installed, to do this you "format" the drive with one of the available File systems that windows can read. Typically on windows this is NTFS or fat32 for older system or devices such as USB sticks.  
6 0
4 years ago
Security attacks are classified as either passive or aggressive. True or false
kogti [31]

Answer:

false is the answer okkkkkkkkkkkkkkkk

3 0
3 years ago
Other questions:
  • Part 1 Create a program that asks the user for a temperature in Fahrenheit, and then prints the temperature in Celsius. Search t
    12·1 answer
  • The What is the pathname that starts from the working directory. directory?
    7·1 answer
  • Why is it important to use the binomial nomenclature system?
    6·1 answer
  • _____ was just a sophomore when he began building computers in his dorm room at the University of Texas. His firm would one day
    14·1 answer
  • The Uniform Commercial Code (UCC) attempts to provide: a. a framework for international contracts. b. a body of rules for dealin
    15·1 answer
  • Match each item with a statement below. - A popular port scanners that has the ability to use a GUI front end - Allows you to pi
    8·1 answer
  • if you are trying to reduce the cost of college, which of the following strategies is likely to save you the most money?
    9·1 answer
  • 1. The opportunity to create several equations for launching program files is called
    5·1 answer
  • Which term refers to a shorthand method for identifying network and host bits in an ip address?
    14·1 answer
  • What is the difference between functional and non-functional testing
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!