In Java, a reference variable is ________ because it can reference objects of types different from its own, as long as those types are related to its type through inheritance.

Answers

Answer 1

Answer:

polymorphic

Explanation:

An example of polymorphic reference, suppose you have 3 classes: Main, Product and SpecificProduct. If SpecificProduct extends Product this means it is a product class but with something else to complement.

Say you want to reference an object of product in the main class, you can do it the classic way:

Product pd = new Product();

Or you can do it polymorphic, like this:

Product pd = new SpecificProduct();

The program will accept just fine because SpecificProduct is extending Product. When you do it like this, we say the reference you made was a polymorphic reference


Related Questions

Which is a function of an operating system?.

Answers

Answer:

An operating system is known as the interface between the computer hardware and the user itself. It is one of the most essential parts of a computer, and is the most integral software. It's responsible for executing programs, handling other inputs i.e an additional mouse, keyboard, etc. as well as handling storage for data and other files. In addition to this, it manages the computer's resources as well as executes and enables services.

the disk you inserted was not readable by this computer

Answers

Answer:

It may not be compatible with your type of your computer.

Explanation:

Plz give brainliest :)

What is the quickest option for adding internet images to a PowerPoint presentation?

*it's b. use the online pictures option....

Answers

Answer:

b. Use the Online Pictures option to perform a search of web-based images to insert.

Explanation:is correct. post protected

In a complex formula, how does excel determine which calculation to perform first?.

Answers

In a complex formula, the way excel determines which calculation to perform first is that; It follows the order of operations.

When carrying out calculations in excel, if we don't bracket certain operations, excel will use the order of operation called BODMAS to determine which operation to carry out first.

For example, if excel wants to solve 3 × 4 + 7 - 2;

The acronyms in BODMAS stand for;

B - Brackets

O - Orders (powers/indices or roots)

D - Division

M - Multiplication

A - Addition

S - Subtraction

Now, it means that the first action it will perform is Bracket while the last will be subtraction.

In our example, excel will first use the multiplication sign to get;

(3 * 4) = 12

Then addition; 12 + 7 = 19

Then subtraction; 19 - 2 = 17

Read more on BODMAS at; https://brainly.com/question/16788360

In object-oriented programming, a data member plays the role of _________. a. an attribute b. a behavior c. either a or b d. neither a nor b

Answers

In object-oriented programming, the object consist of both the data and the functions that operate on the data. In object-oriented programming, a data member plays the role of neither A nor B.

Objects are the product of abstract data types that has inside of it both data and function altogether.

A data member often has different classes. They can be private or public.

Object-oriented programming (OOP) is simply known as a computer programming model that put together software design around data, or objects.

Learn more from

https://brainly.com/question/12342989

Which option ensures that items in a text box or table cell will be in the absolute center of that element?

*i chose b. center, align, middle and got a 100 edg21

Answers

Answer:

Center, Align, Middle

Explanation:is correct. post protected

4. Each mobile device described in this chapter requires that the user have a/an ____________________ associated with services offered by the publisher of the mobile OS in use on the device.

Answers

All mobile devices requires that end users have an account that is associated with services offered by the publisher of the mobile operating system (OS) installed on the device.

A mobile device can be defined as a small, portable, programmable electronic device that is designed and developed for the transmission and receipt of data signals (messages) over a network. Thus, a mobile device must be designed as a handheld device with communication capabilities.

Additionally, mobile devices such as smartphones have a mobile operating system (OS) installed on them, so as to enable them perform various tasks such as:

Taking pictures and creating video files.Typing and sending both text and multimedia messages.Browsing the Internet.Making both audio and video calls.

As a general rule, all mobile devices requires that end users have a registered account associated with the services offered by a publisher of the mobile operating system (OS) installed on the device. This registered account serves as a unique identifier and it connects an end user with the publisher of the mobile operating system (OS).

Read more: https://brainly.com/question/4922532

You have 5 salespersons who work out of your office and who frequently leave their laptops laying on their desk in their cubicles. You are concerned that someone might walk by and take one of these laptops. Which of the following is the BEST protection to implement to address your concerns?
a. Require strong passwords in teh local security policy.b. Use cable locks to chan the laptops to the desks.c. Implement screen saver passwords.d. Encrypt all company data on the hard drives.

Answers

There are different ways to ensure safety of devices. The best protection to implement to address your concerns is to use cable locks to chain the laptops to the desks.

The use of laptop locks is as good as when compared to bicycle chain locks. One can do this by looking for a big, immovable object, such as one's desk, and thereafter you wrap the metal cable around it and then insert the lock into your laptop's lock slot.

With this, your computer becomes theft-proof.

Thia will give you piece of mind as you will not be restless anymore.

Learn more about Laptop security from

https://brainly.com/question/24956493

1.What is the output of the following program? [10 Marks]namespace ConsoleApp1{class Program{static void Main(string[] args){int i, j;int [,] A = new int[5,5];for (i = 0; i < 5; ++i){for (j = 0; j < 4; ++j){A[i,j] = i*j;}}for (i = 0; i < 5; ++i){for (j = 0; j < 4; ++j){if (i < 5){A[j, i] = A[i, j];}elsebreak;Console.Write(A[i, j] + " ");}Console.WriteLine();}Console.ReadLine();}}}

Answers

The program outputs the following rectangular array:

0 0 0 0

0 1  2 3

0 2 4 6

0 3 6 9

0 4 8 12

This is the correctly formatted C# program:

namespace ConsoleApp1{

   class Program

   {

       static void Main(string[] args)

       {

           int i, j;    // declare index variables used to iterate over the array A

           int [,] A = new int[5,5];   // create a 5 by 5 array

           

           /* Iterate over the array with the index variables i and j

               and initialize each location A[i, j] with the product

               of i and j. */  

           for (i = 0; i < 5; ++i)

           {

               for (j = 0; j < 4; ++j)

               {

                   A[i, j] = i*j;

               }

           }

           

           /* Iterate over the array again. This time, swap locations

               A[i, j] with A[j, i] */

           for (i = 0; i < 5; ++i)

           {

               for (j = 0; j < 4; ++j)

               {

                   if (i < 5)

                   {

                       A[j, i] = A[i, j];

                   }

                   else

                       break;

                   

                   // display the current location A[i, j]

                   Console.Write(A[i, j] + " ");

                   

               }

               /* print a newline to prepare for the next line of printing

                   which corresponds to the next column i */

               Console.WriteLine();

                // pause and wait for user keypress before continuing

               Console.ReadLine();

               

               }

           }

       }

   }

When executed, this program simply prints a rectangular array like so;

0 0 0 0

0 1  2 3

0 2 4 6

0 3 6 9

0 4 8 12

Learn more about predicting program output here: https://brainly.com/question/20259194

Daphne has determined that she has malware on her linux machine. She prefers to only use open-source software. Which anti-malware software should she use?.

Answers

Answer:

ClamAV is the open source antivirus you can in your Linux machine.

ClamAV is one of the best open-source anti-malware software for Linux machines.

What is malware?

Any program or file that purposefully hurts a computer, network, or server is known as malware or malware. Computer viruses, worms, Keyloggers, extortion, and spyware are examples of infection.

By analyzing all received packets to stop malware from being launched and infiltrating a computer, antiviruses can assist in preventing malware attacks. Antimalware software can also identify sophisticated malware and provide defense against ransomware assaults.

Hence "One of the top free anti-malware programs for Linux systems is ClamAV".

To learn more about malware,

https://brainly.com/question/22185332

#SPJ12

AI is not embraced everywhere in every industry because _______.

Answers

Answer:

See below:

Explanation:

AI is not embraced in every industry because of the type of industry and what it requires. In some situations, a human is needed since an AI cannot determine what to do and can sometimes even cause death.

AI isn't embraced everywhere because for some things we need a person, lets say for example, we need an AI to respond to 911 calls, that simply won't work due to the many situations and training the bot too will be a nightmare. For example, if a caller says a word that normal humans can understand, or a "code word" that every human knows but they haven't bothered to tell the bot, that will be the end of the line for them.

There are mutliple reasons to not use AI depending on the situation whether its life and death or just plain impractical.

Lloyd works for a graphic design company. He needs a monitor that accurately represents colors. Lloyd's monitor recently failed, and you have been asked to purchase a new one. You have been asked to find a monitor with a fast pixel refresh rate, low energy consumption, and very accurate colors representation.

Required:
What types of display devices will BEST meet the requirements requested?

Answers

OLED simply stands for Organic Light-Emitting Diode. It is often regarded as a type of technology that uses LEDs in which the light is produced by organic molecules. The types of display devices will best meet the requirements requested OLED.

They are often regarded as organic LEDs that are used to produce display panels.

OLED displays are produced with a number of organic thin films between two conductors. It has a form of a simple design that has a lot of merits over other display technologies.

These technology are mostly used today in mobile devices as they give a better image quality.

Learn more from

https://brainly.com/question/14781150

Animals living in burrows under the ground is an interaction between the biosphere and the

Answers

Answer:

Geosphere

Explanation:

The geosphere is made up of the rocks and minerals of the earth found in the ground.

Pedestrians, bicyclists, and skateboarders _____ the rules of right-of-way when they use the road.

Answers

Pedestrians, bicyclists, and skateboarders must follow the rules of right-of-way when they use the road.

"code is broken down by the computer until it is in _____and is a very long series of ons and offs

binary
code
decode
logic

Answers

Answer:

Binary

Explanation:

Binary is 0 and 1, true and false, on and off. It is the only language machines can understand.

Answer:

I'd say that the answer is Binary because it wouldn't be code, decode, or logic and Binary is the only one that makes sense and i got it correct when i did the exam.

Explanation:

a ________ uses electronic memory and has no motors or moving parts.

Answers

Answer:

a to uses electronic memory and has no motors or moving parts.

Explanation:

brainliest me and follow ty

How to square a number in java.

Answers

Answer:

num**2

Explanation:

To square a number in Java, you just take the number and use two asterisks (**) to denote an exponent, and then connect a 2 to it.

For example, if your number is 5:

5**2 in Java means 5^2, which is 25.

Just like how 5**3 in Java means 5^3.

Hope this helps.

What type of programing code do game developers use.

Answers

Explanation:

object oriented programming languages like C#, C++, Java are used by developers to develop a game.

Can I get help with making this code and no importing please

Answers

Use code #cam2! For more reassurance o your code

Vhat is the result when you run the following program?
rint(2 + 7)
rint("3+ 1")
4
O an error statement
2+7
o
4
0
9
3 + 1

Answers

Answer:

4

Explanation:

One of the difficult things about working in game design is that while there are many different roles, most of them only match one specific personality type.
True
False

Answers

Answer:

it's false

Explanation:

they don't match to personalities

________________ is access to the internet through your tv connection.

Answers

Answer:

Cable Modem

Explanation:

PLEASE HELP ME

(b) When a computer systems RAM becomes full it can use virtual memory.
Explain what happens if the computer does not have any virtual memory.

Answers

Answer:

it won't be able to run

Explanation:

because computer runs on physical memory

If a computer does not have any virtual memory, the consequences of running out of physical RAM can be quite problematic.

When the RAM becomes full, the operating system relies on virtual memory as a way to supplement the physical memory shortage. Without virtual memory, the system would have no way to manage or accommodate the excess data that needs to be stored temporarily.

As a result, the computer would likely start experiencing severe slowdowns, freezing, or crashing when attempting to run applications that require more memory than is available.

In extreme cases, the system might even become unresponsive or display error messages indicating a lack of memory. Virtual memory acts as a safety net, allowing the computer to continue functioning by utilizing a portion of the hard drive as temporary memory storage when physical RAM is exhausted.

Without this essential feature, the computer's ability to multitask and handle memory-intensive tasks would be severely hindered.

Learn more about virtual memory, click;

https://brainly.com/question/30756270

#SPJ3

Independence Day celebration in school paragraph ​

Answers

Answer:

We celebrated the Independence day in our school compound, with great pump and show. The school building and the ground were cleaned and decorated for the occasion. A flag pole was put up at the top of the school building. The seating arrangement was made on the platform

Explanation:

please Mark my answer in brainlist

Ask what kind of pet the user has. If they enter cat, print "Too bad...", if they enter dog, print "Lucky you!" (You can change the messages if you like). Once this works, add other pets. (Iguana, Pig, Rabbit...)

Answers

Answer:

Explanation:

a = input("what kind of pet the user has")

if a == 'cat':

  print("Too bad")

elif a == 'dog':

   print("Lucky you!")

4.2.5 codehs text messages answer

Answers

Answer:

public class TextMessage

{

   private String message;

   private String sender;

   private String receiver;

   

   public TextMessage(String from, String to, String theMessage)

   {

       sender = from;

       receiver = to;

       message = theMessage;

   }

   

   public String toString()

   {

       return sender + " texted " + receiver + ": " + message;

   }

}

Which of the following is used to regularly update an operating system? App Extension OS Patch

Answers

Answer:

patch

Explanation:

patch, by definition, is an update meant to fix security flaws.

app, extension, and os dont update

To regularly update an operating system is Patch.

What is Patch?Unlike different news apps, the Patch app allows users to subscribe to a personalized newsfeed from considerable cities and towns across the U.S. Following a smooth launch before this year, the app already includes over 233,000 downloads and averages a 4.5-star rating on both the Apple and Android app stores.In 2013, Patch was spun out of AOL as a joint experience with Hale Global. In January 2014, the latest owners reported layoffs of 400 journalists and other workers. In February 2016, The Wall Street Journal documented that Patch had 23 million users, which was advantageous and developing into new territories.The birth management patch may be a good alternative for someone who's sexually active, considers less than 198 pounds (90 kilograms), and discovers it hard to determine to take a pill every day or who keeps trouble ingesting pills. In some cases, medical or other circumstances make the use of the patch less practical or riskier.

To learn more about Patch, refer to:

https://brainly.com/question/20652851

#SPJ2

Diane changes the size of an image with the format picture pane and keeps the original ratio of height to width of the object. What has Diane done to the image?

chose D. she scaled, got 100%

Answers

Answer:

it's d.  

Explanation: post protected

Elan inserted shapes into a slide in his presentation. What is the quickest way to format those shapes?

it's C. Shape Styles gallery got a 100

Answers

Answer:

c. Shape Styles gallery

Explanation: is correct. post protected

Specifications What are the best practices you should communicate to the Design team about the formatting of the spec book

Answers

The Spec book, describes a formatted writing which contains the major specifications and description of the building blocks of an application or process. The design process should follow formatting guidelines such as ;

Inclusion of table of content, which gives a table like format of the content in the book within the first 25 pages.

Inclusion of the Spec section number in the header and footer section of each page of the book.

Avoid including any other value with the spec section number. Hence, the spec section number must be distinctly seperated.

Learn more : https://brainly.com/question/25648287

Other Questions
Evaluate a+b+cd if a=7/8 , b=7/16 , c=0.8 , and d=1/4 . Write your answer as a fraction in simplest form. helpppppp plzzzzzzz i really need help i need to pass it plzz help how are the functions of the endocrine system and nervous system similar? cmo se celebra el Da Nacional del Merengue? What was the cold war. Which ecosystem would scientists consider to be the most stable? Can someone please help me on this would be appreciated PLEASE HELP!!ATTACHMENT BELOW Agatha the snake is 50 centimeters long.3 years from now she will be 152 centimeters long and fully grown. If Agatha grows at constant rate, how much does she grow in length each year How does a phase change from solid to liquid occur in a substance?A. Heat energy is released from the substance, weakening the electrical attraction between molecules.B. Heat energy is released from the substance, strengthening the electrical attraction between molecules.C. Heat energy is added to the substance, weakening the electrical attraction between molecules.D. Heat energy is added to the substance, strengthening the electrical attraction between molecules. As the number of sellers in an oligopoly becomes very large, a. the price effect is magnified. b. the quantity of output approaches the socially efficient quantity. c. the price approaches the monopoly price. d. the quantity of output approaches the monopoly quantity. Which side lengths could NOT form a triangle?Answer options:5 m, 6 m, 8 m10 m, 10 m, 2 m19 m, 34 m, 15 m3 m, 16 m, 14 m The ratio of boys to girls is 7:5. The ratio of boys with glasses to boys without glasses is 1:6. The ratio of girls with glasses to girls without glasses is 1:3. What fraction of students wear glasses? please help me anyone i will give you brain points Question 1 Two autobody shops charge different rates for repairs. Bobby's Garage charges at a rate described by the equation 'R=250+22t". Sherie's Garage rate is described by the equation 'R=170+30t". In both cases, t' is the number of hours worked and R is the rate charged in dollars. How many hours must pass for the two shops to charge the same amount? Surface area I need help !!! One match releases approximately 1,100 joules of heat energy when it is lit. If 1 joule equals 0.239 calories , how many of these matches must be lit to produce 2, 100cg calories of heat energy ? What was the result of the French and Indian War? 2.03 Quiz: We Hold These Truths Simplify this expression: [tex]7xy - x^{2}t+4xy+5x^{2}t[/tex] Do you have any concerns or worries about how you will manage your course assignments or expectations? Your journal entry will only be seen by you and your instructor, so feel free to share any questions and worries you have.