Java Object class and multiple inheritance -


this question has answer here:

it may very basic question didn't find answer far, asking here. default in java, every class extends object class far know. again how able extend other class multiple inheritance not possible in java. in advance.

a class can't have more 1 direct super-class, can have multiple ancestors.

for example, arraylist extends abstractlist extends abstractcollection extends object. though arraylist has 3 ancestors, has 1 direct super-class - abstractlist.


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -