|
Hi All, I was giving a test and got one question. QUESTION: What do you use if you want to ensure that all methods and properties are implemented? a)Inheritance. b)Polymorphism. c)Encapsulation d)Interface.
I think its Interface. Am I right or the. ans...
Started by Wondering on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
An interface will ensure that the class has method stubs for all the methods, but they may not be implemented and may throw NotImplementedExceptions....
An interface is basically a contract saying "hey, you need to implement.
Yep, use an interface.
|
|
Imagine a user has just posted data to your web application and you want to re-display the current page with a message about their success or failure. This gets complicated.
If the data is valid and the user is expecting html, you want to issue a redirect...
Started by Nick Retallack on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Basically, as you said, you never respond to a POST by anything other....
AJAX is nice, but don't practice when it comes to this, and you should follow it.
That's a horrible idea and not necessary at all.
Idea 2 is out the window.
|
|
I LOVE HUMANS! I LOVE YOU ALL! THAT'S WHY YOU ALL SHOULD LOVE ME TOO! Hi everyone! I'm Blai but you can call me Blai.
I was a DB Mod in the Info Team, I was a moderator of the General Categories and Negima! section, I was also a very hard worker in general...
Started by blai on
, 15 posts
by 8 people.
Answer Snippets (Read the full thread at mangahelpers):
Thinking of getting infamous 2? You seem to be playing it a lot =/ Re: I'm frozen I can stalk you when you....
<3 Lets make this place riki ver 2.
We are stalk buddies.
I can stalk you when you are at home but not on MH.
|
Ask your Facebook Friends
|
We all know the common laws that (seem to) rule computing like Moore's law, etc. But there are the funky ones :
Murphy's law : Something that can go wrong, will.
That's why your if you cover 99 % of your code with unit tests, the 1% breaks during the ...
Started by e-satis on
, 16 posts
by 15 people.
Answer Snippets (Read the full thread at stackoverflow):
Debugging is twice as hard as writing the code....
A common mistake people make when trying to design.
Hofstadter's Law applies to project estimates:
It always takes longer than you expect, even when you take Hofstadter's Law into account.
|
|
Granted knowledge is best retained when put into practice, but as programmers I'm sure there's just too much information. Besides annotating your books, what other methods do you use for your own personal knowledge-base so you can have an easily accessible...
Started by blizpasta on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
No need to maintain a web....
As far as personal applications.
That way you'll always have it no matter where you are, and that information gets shared with others.
Blog about it.
There's still places without internet access you know.
|
|
How do you call those little annoying cases that has to be checked , like "it's the first time someone entered a record / delete the last record in a linked list (in c implementation) / ... " ?
The only term I know translates not-very-nicely to "end-cases...
Started by yossale on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Because you can't delete the first or last node, the deletion code only has to use the "insert.
|
|
I have played runescape a very long time. i dont see much more in it because all of the update's its starting to look like WOW and i do not like it. And further more i am 18 and i need to quit, My girlfriend is now prego so selling my accounts could help...
Started by specedftw on
, 20 posts
by 7 people.
Answer Snippets (Read the full thread at sythe):
Id blank out the names on the last accounts Nawh about the name being crossed out? :O bumpppp... .
Youd see all my accs are 120+.
Bummppp would you take SS and D stupid ass can read.
For really cheap..
Bumpp bum come one people 3 perfect accounts.
|
|
Denigrating their religion! Facts do not matter to people like Janie/bulphrog.
Answer Snippets (Read the full thread at network54):
Pretty soon idea, why do you bring it....
Hiding what is obvious to all is the mark of a coward.
Are you really THAT stupid that you proclaim what you are.
To GIVE me the ISP numbers for ALL of those board names.
|
|
Do you think Magic Johnson is the most all around player of all time? If not who and explain why?
Started by Patrick Ewing on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at yahoo):
So with that all being....
So as far as bing able to play.
And as a 6'9 point guard made Magic was able to play all 5 positions on the court and in that respect there is no one else in the league history that can play all 5 position.
|
|
Should you discharge a Li-ion battery all the way before plugging it in?
Is it especially pertinent when you get a new battery / laptop?
Should you keep draining it all the time, or leave it plugged in whenever you can?
All battery tips are welcome.
Started by Paul Tarjan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Good luck :)
Li-Ion degrades with use, so you should prefer shallow you should plug in your laptop whenever possible....
Then, vary the charge fry the battery cells.
You should fully charge/ discharge your battery the first 3 times of use.
|