Janaranjani<br />SCJP 1.5(97%)
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
Originally posted by Hemant Agarwal:
Abstract class can have a constructor, Interface cannot.
Abstract class can have static methods, Interface cannot.
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
Abstract class can have a constructor, Interface cannot.
Abstract class can have static methods, Interface cannot.
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
"I'm not back." - Bill Harding, Twister
There is no emoticon for what I am feeling!
Originally posted by Jim Yingst:
Regarding staitic methods in interfaces, I suppose it might have been possible for them to allow this, but I don't see the point. The main idea of an interface is that you have a set of method declarations that can & must be overridden by any instantiable class which implements the interface. If an interface had static methods, then those could not possibly be overridden. (See OverridingVsHiding.) So why bother using an interface if you wanted to do that?
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
"I'm not back." - Bill Harding, Twister
Originally posted by rehans oberoi:
what are the main differences between
interface and abstract class
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
A wop bop a lu bob a womp bam boom. Tutti frutti ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|