Which one of the following is NOT a pitfall of inheritance?
Base-derive classes should be totally separate and do not have an is-a relationship.
Base-derive classes should have been aggregate classes instead.
Inheritance may be inverted, example: Truck<-Vehicle should be Vehicle<-Truck.
Incompatible class hierarchies may be connected because of multiple inheritance.
Aggregation should have been used instead.
Functionality is transferred from a base class to a derived one.
In my opinion, NOT a pitfall of inheritance meas can use inheritance.
1 seems do without inheritance
2 aggregate substitute Base-derive I don't know
So, I think 5 is the answer.
hello everyone,
Can anyone please tell the way to find out the mac address of a system which is:
1. Shutdown
2. Power plugged in
3. Connected to Lan
4. Nic card ON.
Kindly post the solution as i urgently need it in my project...
thank you
Is ther any way to get data from other sites and display in our jsp pages dynamically.
http://www.dictionary30.com/meaning/Misty see this url
in that one block is like
Wikipedia Meaning and Definition on 'Misty'
In that block they are fetching the data from Wikipedia and displaying into dictionaly30.
Question:
How they are fetching wiki data to their site.?
I need to display data like that in my jsp page by fetching from other site.
Hello eveyone,
i using elastic in my script.
I have also jQuery Tabs (every will be get over AJAX and content a textarea) and a timer for Saving content all 3 minutes. So some JS code...
I have 2 parts on my site, left and right. On the right side i have 2 tabs (jQuery not AJAX) with each one textarea. And Left side between 5-10 Textareas each in Tab but they gonna be loaded only if Tab is activ (AJAX).
my Problem is:
If i paste a lot of text in a Textarea (1000 characters) the writing get slowed, not fluid, jerky.
It ist 100% the elastic problem, without elastic there no Problem while writing.
Have some one an idea for the solution of this Porblem? Is it Overload?
I have a program where i have a button to change the background color to red and another button to set back the default panel color.
How do i get back the default color for panel??
My iPhone SDK and Objective-C learning is moving ahead quickly, thanks to several great books and online help (including this one). But I do have some basic questions due to what I already know that will be answered eventually, but I'd rather get a heads-up now if possible :)
Are there equivalents for LayoutManagers in Cocoa Touch? Are they used, or is absolute positioning used instead? I have seen some of the layout stuff in IB, but I'm not sure what to look at in code.
Aside from using the IB, are UIControls added directly to UIView instances using the addSubview (like add in Swing)?
These are just two concrete questions that I've thought of just now, but I would love to see any translation of Swing concepts to Cocoa Touch.
Hey Guys
I want to set two different look and fields on one frame.
I have two different panels in that.
i want to set two different look and field for both.
Can I do that?
And if yes then how?
Currently anybody can access the solr admin page by going to my_ip:8983/solr
I can't have it like that, so how can I make it prompt for password or something?
I have setup my servers apache2.conf file to prompt for password whenever my site is accessed by www.mydomain.com.
But when using another port, the "require password" wont show up.
Any ideas how to secure this?
Don't point me to the SolrSecurity wiki because it's simply too outdated. I have tried it without luck.
Thanks
I have a List with say size n, and i have to dynamically create n variables ie i want to dynamically create the variables depending upon the size of the list. How can i achieve this?
Say i have List as List year with n elements in it;
then i have to create the n Integer variables from the above list.
thanks.
Hi
I want to know that can two different jvm run in the same machine?
I also want to know more about jvm working.Can any one provide some useful links.
Thanks
If I type '<%# vs <%"' into any of the major search engines, everything is stripped out except the 'vs'. I understand why they do this. I would just like to know if anyone knows of a way to escape illegal characters so that they are searched properly.
I know this is not strictly a programming question, but it is relevant.
This seems like a simple request, but google is not my friend because "partition" scores a bunch of hits in database and filesystem space.
I need to enumerate all partitions of an array of N values (N is constant) into k sub-arrays. The sub-arrays are just that - a starting index and ending index. The overall order of the original array will be preserved.
For example, with N=4 and k=2:
[ | a b c d ] (0, 4)
[ a | b c d ] (1, 3)
[ a b | c d ] (2, 2)
[ a b c | d ] (3, 1)
[ a b c d | ] (4, 0)
I'm pretty sure this isn't an original problem (and no, it's not homework), but I'd like to do it for every k <= N, and it'd be great if the later passes (as k grows) took advantage of earlier results.
If you've got a link, please share.
Ok so i have 2 jars (Console, Core)
1st-Console) receives user input
2nd-Core) processes the input and gives an output
i'm trying to have the two "Communicate" with each other by exchanging input and output
now i have tried writing to a file to communicate when i ran into the problem of "Notifying" the other that there is input to receive and output to give
i'm a bit new to this ideal so if its an easy function, please don't criticize.
I know add() adds the specified (signed) amount of time to the given time field, based on the calendar's rules.
And roll() adds the specified (signed) single unit of time on the given time field without changing larger fields.
I can't think of an everyday usage of roll() I would do everything by add().
Can you help me out with examples when do we use roll() and when add()?
<script type="text/javascript">
$(document).ready(function()
{
$('.ibutton').click(function()
{
var ajaxdata=$("#country").val();
var value = "country="+ajaxdata;
$.ajax({
url: "saveIt",
type: "POST",
data: value,
cache: false,
success: function(data){
alert("load success");
}
});return false;
});
});
</script>
Friends, i followed every thing but its not working, upon submit, am unable to send the servlet request, saveIt is my url pattern,pls help me.
Maps collection is referred to an dictionary because of the way it works.
Each entry into a maps collection involves a pair of objects.
In a maps collection, an object associates the key which determines where the object is stored in the map.
The key object in the maps collection can be duplicated.
A stack which has Last In First Out storage mechanism can be considered as a maps collection.
I think #1,#2,#3 and #5 are Correct in above, but I have doubt with #5. Am I correct?