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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -