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
frez [133]
3 years ago
9

Do an Internet search for multiple inheritance in programming languages. What are the pros and cons of multiple inheritance? Why

do you think the developers of C#, Java, and Objective-C chose a single inheritance model? Explain your answer.
Computers and Technology
1 answer:
Andrei [34K]3 years ago
5 0

Answer:

Pros and cons of multiple inheritance

Pros

a) You categorize classes in many different ways. Multiple inheritance is a way of showing our natural tendency to organize the world. During analysis, for example, we use multiple inheritance to capture the way users classify objects.

b) By having multiple superclasses, your subclass has more opportunities to reuse the inherited attributes and operations of the superclasses.

Cons

a) If two classes have a method with the same name, the new subclass doesn't know which one to call.

b) multiple inheritance can lead to a lot of confusion when two base classes implement a method with the same name.

c) The more superclasses your subclass inherits from, the more maintenance you are likely to perform. If one of the superclasses happens to change, the subclass may have to change as well.

d) When a single subclass inherits the same attribute or operation from different superclasses, you must choose exactly which one it must use.

Explanation: Question 2

Some programming languages such as Java don’t allow you to use multiple inheritance. You must translate multiple inheritance into single inheritance or individual Java interfaces. This can be confusing and difficult to maintain because the implemented code for categorizing objects is quite different from the way the user organizes those objects. So, when the user changes their mind or adds another category, it is difficult to figure out how to program the new subclass.

You might be interested in
What's the function of a cyclebin​
amid [387]

Answer:

In Windows, the Recycle Bin is a folder or directory where deleted items are temporarily stored. Deleted files are not permanently removed from the hard drive but are sent instead to the Recycle Bin, unless they are too large.

3 0
3 years ago
The pseudo-class selectors for links let you use CSS to change the formatting for all but one of the following. Which one is it?
aev [14]
B. A link that is inactive
7 0
3 years ago
Data-driven decision making is a process of <br><br>    
ANTONII [103]

It is a process of making decisions that are backed up with verifiable or hard data rather than making decisions based on observation only. In the past few years, it used to be a difficult process to collect, extract and analyze data. These days, however, the development of business intelligence software allows anyone without a heavy IT background to produce reports that will later need to be analyzed, <span>thus accelerating the decision process.</span>

3 0
3 years ago
We have a user Sally Smith who we want to grant the ability to launch applications and browse folders. But we do not want her to
igomit [66]

Answer:

LIST

Explanation:

NTFS is A proprietary journaling file system developed by Microsoft. It started with windows 3.1.

List Folder Contents: Is what Gives authorized user the permission to viewing and listing of files and sub-folders as well as executing of files inherited by folders only.

NTFS permissions applies to every file and folder stored on a volume formatted with the NTFS file system. By default, permissions are inherited from a root folder to the files and sub-folders beneath it, although this inheritance can be disabled.

List Folder Contents will allow you to display the folder's contents and to display the data, attributes, owner, and permissions for files within the folder.

The NTFS permission that applies to the Domain Users group that will allow Sally to do what he wants without allowing more access than necessary is LIST.

8 0
3 years ago
What are the important points
LUCKY_DIMON [66]

Answer:

You must evaluate information

Explanation:

The first step to thinking critically is to accept information only after evaluating it. Whether it's something read or heard, critical thinkers strive to find the objective truth. In doing this, these employees evaluate by considering possible challenges and solutions. This process of vetting new information and considering outcomes is called evaluation.

6 0
3 years ago
Other questions:
  • A _______________ is software that can guess passwords.
    5·1 answer
  • When is padding required for a structure type variable? Group of answer choices When the structure contains a word-type variable
    9·1 answer
  • Software refers to the physical parts of a computer.<br> a. True<br> b. False
    11·2 answers
  • Create another method: getFactorial(int num) that calculates a Product of same numbers, that Sum does for summing them up. (1,2,
    7·1 answer
  • What type of multimedia are live news feeds? Live news feeds are examples of ________ multimedia. 20 POINTS PLZ HELP
    5·2 answers
  • Which statement best describes 'abstraction'? *
    5·1 answer
  • The Ingenuity and the MOXIE are two new pieces of technology on the Perseverance. What role will these instruments play? How wil
    6·2 answers
  • Accessibility is the degree to which a product or service is readily available and usable by _____.
    12·1 answer
  • Html is a markup language that lets you identify common sections of a web page
    8·1 answer
  • In the context of in-house software development options, a firm that enhances a commercial package by adding custom features and
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!