Click here to Skip to main content
15,918,889 members
Home / Discussions / Java
   

Java

 
QuestionFlapjacks basic java code; Create methods? Pin
Aurelius446611-Dec-09 10:03
Aurelius446611-Dec-09 10:03 
AnswerRe: Flapjacks basic java code; Create methods? Pin
LunaticFringe11-Dec-09 11:13
LunaticFringe11-Dec-09 11:13 
AnswerRe: Flapjacks basic java code; Create methods? Pin
Richard MacCutchan12-Dec-09 2:03
mveRichard MacCutchan12-Dec-09 2:03 
AnswerRe: Flapjacks basic java code; Create methods? Pin
427748012-Dec-09 8:59
427748012-Dec-09 8:59 
QuestionEclipse Pulsa Pin
Enobong Adahada9-Dec-09 10:23
Enobong Adahada9-Dec-09 10:23 
AnswerRe: Eclipse Pulsa Pin
Richard MacCutchan9-Dec-09 23:52
mveRichard MacCutchan9-Dec-09 23:52 
QuestionAny one explain plz Pin
kirancgi6-Dec-09 23:07
kirancgi6-Dec-09 23:07 
AnswerRe: Any one explain plz Pin
Nagy Vilmos7-Dec-09 1:12
professionalNagy Vilmos7-Dec-09 1:12 
First, the word is PLEASE, use vowels and people won't be hostile. It would be nice to have a title that describes the question as well.

Now, interfaces, abstract classes and the singleton pattern are NOT java ideas, they are Object Orientation concepts. I will try to explain them in one[ish] sentence each.

An interface is a definition of methods that must be supported but the implementation is left to the classes that use it. If you had an interface Move to be used by Animal classes, the way that each Animal moves is not important just that they must be able to move.

Abstract classes are classes that do not support instances but are concrete ideas in themselves. Think of the class Animal, it is abstract, every Animal is actually a more specialised thing - Dog, Cat, VB Programmer, Slug – they are all a type of Animal and can be addressed as an Animal, you just can not create an Animal.

The Singlton Pattern is a well established concept with a known implimentation. We want to ensure there is one and only one instance of a particular class; thing Highlander in code. To do this, the class will have a static instance of itself that is created the first time it is called.



Panic, Chaos, Destruction.
My work here is done.

GeneralRe: Any one explain plz Pin
Luc Pattyn9-Dec-09 13:36
sitebuilderLuc Pattyn9-Dec-09 13:36 
GeneralRe: Any one explain plz Pin
LunaticFringe9-Dec-09 13:47
LunaticFringe9-Dec-09 13:47 
GeneralRe: Any one explain plz Pin
Nagy Vilmos9-Dec-09 21:34
professionalNagy Vilmos9-Dec-09 21:34 
JokeRe: Any one explain plz Pin
Richard MacCutchan9-Dec-09 23:50
mveRichard MacCutchan9-Dec-09 23:50 
GeneralRe: Any one explain plz Pin
LunaticFringe10-Dec-09 2:43
LunaticFringe10-Dec-09 2:43 
Questionscreen shairing application Pin
rajivbirari3-Dec-09 21:52
rajivbirari3-Dec-09 21:52 
AnswerRe: screen shairing application Pin
Nagy Vilmos3-Dec-09 23:54
professionalNagy Vilmos3-Dec-09 23:54 
AnswerRe: screen shairing application Pin
Arun Reginald Zaheeruddin1-Mar-10 0:05
Arun Reginald Zaheeruddin1-Mar-10 0:05 
QuestionGWT https Pin
sangeethanarayan3-Dec-09 17:36
sangeethanarayan3-Dec-09 17:36 
AnswerRe: GWT https Pin
Nagy Vilmos4-Dec-09 0:24
professionalNagy Vilmos4-Dec-09 0:24 
GeneralRe: GWT https Pin
sangeethanarayan4-Dec-09 5:02
sangeethanarayan4-Dec-09 5:02 
GeneralRe: GWT https Pin
Nagy Vilmos4-Dec-09 5:34
professionalNagy Vilmos4-Dec-09 5:34 
Question[Solved] Access Problem with different classes and instances [modified] Pin
TheRainer3-Dec-09 16:13
TheRainer3-Dec-09 16:13 
AnswerRe: Access Problem with different classes and instances Pin
Cedric Moonen3-Dec-09 23:40
Cedric Moonen3-Dec-09 23:40 
QuestionRe: Access Problem with different classes and instances [modified] Pin
TheRainer11-Dec-09 4:33
TheRainer11-Dec-09 4:33 
AnswerRe: Access Problem with different classes and instances Pin
Cedric Moonen11-Dec-09 4:43
Cedric Moonen11-Dec-09 4:43 
AnswerRe: Access Problem with different classes and instances Pin
TheRainer11-Dec-09 7:05
TheRainer11-Dec-09 7:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.