English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how the code becomes complexity,? give me some examples

2006-08-03 02:43:02 · 1 answers · asked by sree 1 in Computers & Internet Programming & Design

1 answers

Inheritance can be extended, thus multiple inheritance will add some confusion to some situation. It is technically a debate weather to use it or not. It can introduce a diamond problem.

Take a look at the diamond problem link to find out why it can be confusion. For example, in Java language Sun creators used multiple inheritance for mainly everything. The good adaptation towards multiple inheritance is it can allow external drivers extend its solution. So you will have more than one solution to the current problem. Forexample, the HTTP package for java. there are many different webservices that has its own extended implementation.

It is quite confusing but its all for the sake of flexibility.

2006-08-03 04:08:36 · answer #1 · answered by ? 6 · 0 0

fedest.com, questions and answers