This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
No, it can only extend one class and implement as many interfaces as you want.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
No, Java does not allow multiple inheritance.You may extend Just one class and implement as many interfaces as you need just providing functions for the abstract methods. Hope this helps.
no , java can not aloud to make multiple superclasses but a superclass have a lot of sub classes means eg class a{ } class b extends a{ } class c extends a{ } in it "a" is a super class and "b" is sub class who extend him but "c" also extends "a" so "a" is also superclass of "C". it is possible; but a subclass can not create a multiple superclasses eg class a{ } class b extends a{ } class c extends a,b {// error } but interface u can extends more then 2 interface e.g interface a { } interface b{ } class C implement a,b{ } it is possible ok i hope u r clear more if i can write some wrong plz clear me thanx Faheem
in java one class can only have a direct superclass -- Robbies ----------------------------- 1.java IDE tool : JawaBeginer 2.Java Jar tool : JavaJar http://www.pivotonic.com
though different, its also good learning if you explore classes in relation to interfaces. A class could implement many of them e.g. class TClass implements Interface1, Interface2{....