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
jeka57 [31]
3 years ago
5

Among object-oriented languages, one feature that varies considerably is whether the language allows multiple inheritance. C++ d

oes but Ada does not. Java takes a middle ground approach of allowing multiple inheritance of interfaces but not classes. Using a C++ example, illustrate some of the complexities that multiple inheritance introduces. How does C++ deal with them? Why does Java's middle ground approach offer some of the benefits of multiple inheritance while avoids its problems.
Computers and Technology
1 answer:
Amiraneli [1.4K]3 years ago
4 0

Multiple inheritance causes Diamond problem which happens when:

Class A is parent of class B and C

Now when class D will be inherited from both Class B and C it will have all the members of class A and B which if same will confuse the compiler to import which one?

C++ solves it by using virtual keyword with them and thus telling the compiler which one to inherit.

Java has introduced the interface concept rather then allowing multiple inheritance.

You might be interested in
Artists who draw images on a computer often use a stylus in conjunction with special _________ tablets, which offer extra-sensit
hodyreva [135]

Answer:

Graphics is the correct answer to the following question.

Explanation:

The following answer is true because Graphic tablet is the device in which a person can draw graphics, images or they can also draw by their hands with use of digital pen which is use for drawing as they draw images on the paper. we can also say the graphic tablet is used for the digital art.

So, That's why the following answer is correct.

6 0
3 years ago
David bought 5.2 pounds of oranges for $1.20 per pound . how much did david spend ..............................................
Tcecarenko [31]

Answer:

David spent $6.24.

Explanation:

5.2 times 1.2

3 0
3 years ago
The desired outcome of any form of communication should always be
mezya [45]

Answer:

talk it through and look at each sides differences and take heat.

Explanation:

Most desired outcomes in any form of community should be (Im sorry for...)

or I don't understand what you mean or I missunderstood so please....

At times when people communicate things don't alwasy go as planned out so, first you must both be aware of the issue or situation and, not yell but one persons speak at a time while the other listens and then they talk

7 0
4 years ago
Read 2 more answers
4.9 Code Practice: Question 4
RideAnS [48]

total = 0

i = 0

while i < 10:

   temp = float(input("Enter Temperature: "))

   total += temp

   i += 1

print("Sum = "+str(total))

I hope this helps!

6 0
3 years ago
Read 2 more answers
Which of the following devices is a simple machine
hram777 [196]

Answer:

what are the machines?

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • What computer part do you need to make you’re pc run faster?
    5·1 answer
  • What is the difference between hardware and software?
    11·1 answer
  • _______ is a way to minimize technical problems with your computer.
    5·2 answers
  • A network supplies programming and services to a series of local tv stations, or _____, which contract to preempt time during sp
    7·1 answer
  • What is the meaning for science?
    14·1 answer
  • A0domain indicates that the computer or DNS name does not exist.
    7·1 answer
  • How many bytes are there in 256 Kbytes?
    6·1 answer
  • Which of the following are breach prevention best practices?Access only the minimum amount of PHI/personally identifiable inform
    11·1 answer
  • 8.10 Code Practice Question 3
    6·1 answer
  • Very few games have any sort of narrative, not even a simple one that involves setting the mood through color, sound, environmen
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!