I have another ?This ? has to do with interfaces

I have another ?.This is about interfaces ok lets say I take the code I have here and add a interface D to this like so
public class A implements D{
public A()
   B bb = B.getB();
   bb.sayItWorks();
   saySomthingElse(bb);
public void saySomthingElse(B bbb)
  bbb.saySElse();
public static void main(String[] arguments)
   A aa = new A();
abstract class B
  private static C cc = new C();
  public static B getB() { return cc; }
public abstract void sayItWorks();
public void saySElse()
   System.out.println("See ya");
class C extends B
  public C() {}
  public void sayItWorks( )
   System.out.println("It works,HELL YEAH!!!!,Thank you KAYAMAN" );
interface D
  public void saySomthingElse(B bb);
}Ok My ? is y do we really need a interface I mean I could have done this just by adding a method in the A class that will do the same thing as the interface would.So what I am wanting to know is a interface just use for design issues or what?

In this example, you don't need an interface. However, consider the interface Runnable, which provides a form of multiple inheritance. Or the interface List which allows you to switch implementation between ArrayList and LinkedList trivally, should you decide that you want different operations to be efficient.

Similar Messages

  • TS1702 I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to rein

    I have contacted EA about this and can find no help. I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to reinstall it. During the process you sign in and approve the purchase KNOWING that another window will open saying that you have previously purchased it and that there is no charge. So what happened this time? It will not connect and all of my saved and current games are wiped out. I want my money back, this game interface is pretty junk and operates like some ancient DOS program,,bug,bug,buggy. I want my money back.

    Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • I have another account and my ipad with this account and the password i forget it and the reset question i need help my ipad need active to open thank

    my password

    i have another account and my ipad with this account and the password i forget it and the reset question help me my ipad need active to open and i know my account name

  • I have th iPhone 4s and recently upgraded to ios 7.  This has really messed with my ability to listen to and delete voicemail messages.

    I have th iPhone 4s and recently upgraded to ios 7.  This has really messed with my ability to listen to and delete voicemail messages.

    bmichaelcycle wrote:
    I have th iPhone 4s and recently upgraded to ios 7.  This has really messed with my ability to listen to and delete voicemail messages.
    Can you explain in detail what ability?

  • With IOS6 3G does not work.  This has already happened with IOS5.1, was only solved with IOS5.1.1.  More anyone have this problem? How do you solve?

    With IOS6 3G does not work.
    This has already happened with IOS5.1, was only solved with IOS5.1.1.
    More anyone have this problem? How do you solve?

    This response is a little late as I just read about your problem. I have a 2012 Dodge Charger and a 2012 Chrysler Town and Country and both worked flawlessly with the iPhone 5s my wife and I had. However, we just upgraded to the iPhone 6 and Uconnect will receive calls but you cannot answer them. You can callout successfully, however. the annoyance being the inability to answer incoming calls in the HandsFree mode.

  • HT5648 OS10.6.8 Firefox 24.0  The new Yahoo mail shows no graphics.  However, the new Yahoo mail displays correctly in Safari and Chrome.  I believe this has to to with the settings for Javascript.  Help me, please.

    OS10.6.8, Firefox 24.0 
    The new Yahoo mail shows no graphics using Firefox 24.0 - just identical rectangles where new icons should be.\.  However, the new Yahoo mail displays correctly in Safari and Chrome.  I believe this has to to with the settings for Javascript.  Those settings aren.t easy to access in the most recent Firefox 24.0 version.   Help me, please.

    The settings for Javascript are either on or off, Fireefox 24 doesn't give you a option to turn off Javascript, unless you installed something like NoScript extension (or some other Javascipt blocking add-on)
    If NoScript, then you need to use the View > Toolbars > Customize and drag the NoScript "Temp Allow All" button to the toolbar area to enable all enabled scripts (including Javascript) on that web page.
    Under the Firefox Help menu is a option to restart with add-ons disabled to see if something you might have installed is causing your problem.
    Reinstall Firefox or create another user account and run Firefox there to try to localize your issue.
    I'm having no problem here on 10.6.8 in Firefox, Chrome or Safari, Yahoo Mail works perfectly.

  • I just dowloaded an il divo album.  when it was placed on my ipod classic it came in as 8 different songs; not listed as 1 album with 8 songs.  this has happened before with other purchases.  Why?  How can I insure an entire album is saved as an entire al

    i just dowloaded an il divo album.  when it was placed on my ipod classic it came in as 8 different songs; not listed as 1 album with 8 songs.  this has happened before with other purchases.  Why?  How can I insure an entire album is saved as an entire album and not individual songs. And now how can I move individual songs to the album they belong in?

    I seem to have fixed it by putting <div  class="clearfloat"></div> after the navigation bar?

  • I'm having difficulty publishing via ftp to Machighway, I suspect this has to do with the fact I seperated my webpages into 3 sites in iWeb. Can any one tell me how to undo this in iWeb?

    I'm having difficulty publishing via ftp to Machighway, I suspect this has to do with the fact I seperated my webpages into 3 sites in iWeb. Can any one tell me how to undo this in iWeb?

    You'll have to describe in detail the workflow you're using to upload to Machighway and any messages/warnings that you get along the way.  Also what version of iWeb are you using and are you publishing just one of your sites?
    OT

  • I think this has to do with algorithms

    OK this has to do with with a systems calender .Lets say we made a cal program and we need to up date the next month and put the numbers in order for that next month calendar and then after that month has past we need to up date the next month calender and put the numbers of days in order for that month and so on like the system cal does .Well I hope I have made my self clear here.If not let me know and I will try to explain alittle better.If you can give me any hints or tips how I could accomplish that would be great.Thanks

    Thanks for your reply and that is where I have been looking to see if they had something in there that I could use to do that but I have not found nothing or I am over looking it.This is what I am trying to do
    This is for the month of Jan now if I type at the commandline feb I am wanting to shift the numbers around so they line up right for the month of Feb and I need to be able to keep repeating this so if I type the next month or what ever month the numbers will shift and line up right
        //month of Jan
        String[] wholemonth = new String[8];  
        wholemonth[0] =  getM(getArgs);
        wholemonth[1] = "Su Mo Tu We Th Fr Sa";
        wholemonth[2] =  "      1  2  3  4  5 ";
        wholemonth[3] =  "6  7  8  9 10 11 12";
        wholemonth[4] = "13 14 15 16 17 18 19";
        wholemonth[5] = "20 21 22 23 24 25 26";
        wholemonth[6] = "27 28 29 30 31";
        wholemonth[7] = " ";Could anyone help me on this.And if you all think I am going about this the wrong way and if there is something else I could do thanks for telling me

  • This has to do with remembering password option.

    This has to do with remembering password option. I think my wife checked of "Never for This Site" by mistake, for her yahoo mail login.
    Is there a way to fix this? Note, I know that it works because I've been getting the remember this password option when I enter a fresh yahoo mail id. We just don't get that option when she enters her yahoo mail id.

    No, this did not solve my problem.
    I know this because I can activate remember my password for a different Yahoo Mail Id. So, the remember password process works for one Yahoo Mail Id, but not for my wife's.
    I did this by deleting (using delete key) one of my Yahoo Ids from the autofill display of it, then by signing onto Yahoo Mail with that Id, and I got the message with the key icon on the left "Do you want Firefox to remember the password for "xxxxxx" on yahoo.com" with the three options to the right:
    Remember, Never for This Site and Not Now.
    So, my cookies, history settings are fine. (By the way, I don't see Cookies when I go to Privacy...my Firefox doesn't show this).
    I can't think of any other reason why she doesn't get the reminder message, other than she initially selected Never for This Site, by mistake after she signed in for the first time.
    I think one possible solution is to remove Firefox and then reinstall it. I'm thinking that this will clear all autofill settings, including the setting of my wife's Yahoo Id which must be "Never for This Site."
    But isn't there another way to reverse that setting? To undo the "Never for This Site" setting, so that the reminder message appears after signing into Yahoo Mail?

  • HT1923 I cannot install the latest version of itunes as it instructed me to uninstall the version I had, which I did, but the "Apple mobile device support" will not uninstall.  This has left me with no itunes .  Help please

    I cannot install the latest version of iTunes as it instructed me to uninstall the version I had, which I did, but the "Apple mobile device support" will not uninstall.  This has left me with no iTunes and the new version will not install until I can uninstall all the old components.  Help please

    You could try downloading and installing 7-Zip (free) and downloading a fresh copy of the iTunesSetup.exe installer, unpack the installer into its components using 7-Zip then try installing AppleApplicationSupport again. It may still fail to install but you may get more useful error messages as to why not.
    tt2

  • Yeah, this has to do with RDP--Have to make a user an admin so he can login

    Win2K8 standard..  So I created a regular user but he can't log in. The normal error message has to do with Term Services. He can log in IF I elevate him to the admin group. Unfortunately, I can't grasp the meaning of the message to change the term
    services on the RDP client I assume
    Am I making sense?
    Thanks for any help

    You can enable Remote Desktop on the Windows Server 2008 server directly, or you can enable it remotely from another server or workstation computer.
    Membership in local Administrators, or equivalent, is the minimum required to complete these procedures if Active Directory Domain Services (AD DS) is not installed. Membership in Domain Admins, or equivalent,
    is the minimum required to complete this procedure if AD DS is installed. Review details about using the appropriate accounts and group memberships at Local
    and Domain Default Groups (http://go.microsoft.com/fwlink/?LinkId=83477).
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • This has to do with abstract and how can i acesses it with a getmethod()

    Ok lets say I have a class called class A and a abstract class called class B ok I want to beable to access the methods in class B how can I do this ??I know I could make the method static and get to the method like B.methodIWant() but I want to access it like something like I have down below.Thank you for anyhelp you can give on this thanks
    This is what I was tring but its not working cause it returns a nullpointer and I dont know how to get this to work right can someone plz show me how to get this to work correctly or point me to some links that will explain or something.
    publc class A
    publc A()
      B bb = B.getB();
       bb.methodIWant();
    public static void main(String[] arguments)
        A aa = new A();
    abstract class B
      static b C = B.getB();
      public static B getB()
        return B.C;
      public void methodIWant()
       System.out.println("got it");
    } Jimmy

    I have another ?.This is about interfaces ok lets say I take the code I have here and add a interface D to this like so
    public class A implements D{
    public A()
       B bb = B.getB();
       bb.sayItWorks();
       saySomthingElse(bb);
    public void saySomthingElse(B bbb)
      bbb.saySElse();
    public static void main(String[] arguments)
       A aa = new A();
    abstract class B
      private static C cc = new C();
      public static B getB() { return cc; }
    public abstract void sayItWorks();
    public void saySElse()
       System.out.println("See ya");
    class C extends B
      public C() {}
      public void sayItWorks( )
       System.out.println("It works,HELL YEAH!!!!,Thank you KAYAMAN" );
    interface D
      public void saySomthingElse(B bb);
    }Ok My ? is y do we really need a interface I mean I could have done this just by adding a method in the A class.So what I am wanting to know is a interface just use for design issues?

  • Popup blocker keeps losing my "exceptions" to websites. every day I have to go back in and enter the exceptions. This has only happened with the last two Firefox versions.

    I go to "tools" then popup blocker "exceptions". (I have the block popups checked.) When I enter "www.paypal.com" and add it in, everything is OK for about 12 hours (or less). I will check to see if the exception is still there within 12 hours and there is nothing in my exceptions. I have added as many as three exceptions entered only to have them all disappear within a few hours.
    This severely cramps my attempt to print shipping labels on the PayPal website.
    I thought this latest version of Firefox cured the issue, but it did not.

    Make sure that you do not use [[Clear Recent History]] to clear the "Site Preferences"
    Clearing "Site Preferences" in "Clear Recent History" will remove exceptions that are stored in content-prefs.sqlite (site specific settings for zoom) and permissions.sqlite (exceptions for images, cookies, pop-ups, software; Tools > Page Info > Permissions) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder].
    The password exceptions (Tools > Options > Security: Passwords: Show Passwords) are also removed from signons.sqlite.

  • HT4061 How do I restore my iphone 4? Whilst updating to new software my computer crashed. This has left me with a phone that won't respond at all and itunes says 'restore your phone'. I can't press anything without getting a picture of a usb. not useful.

    My computer crashed while updating my iphone 4.
    My phone now will not respond other than a USB symbol to itunes.
    When I plug into itunes it says 'reset your phone'.
    I've tried holding the on/off and home button together, nothing.
    On another note, it isn't possible to schedule into a shop in London until a week today. There is something seriously wrong with this picture.
    Any help would be awesome.
    Thanks

    1) ensure iTunes is authorized for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
    above works for purchases from the iTunes store. for everything else, check out this post by Zevoneer.

Maybe you are looking for

  • Is there a way to create a batch export of pages docs from iCloud?

    I have been using Pages pretty much exclusively for the past couple of years. The new, crippled version has put an end to that.  But I have about 1000 docs in iCloud that I need to get out of iCloud an onto to some usable platform like Goggle Docs (w

  • ICloud creating duplicates in my desktop iCal & Address book.

    Figured this is the best place to post. When I disconnect from iCloud I have most of my cards, but my account card is missing. Then whe I turn on iCloud there are two of my cards and many other clients. How do I sort this out. In previous years I use

  • Oracle Discoverer 4i - Invalid username and password

    Hi, I have 2 machines, both installed with Oracle Discoverer 4i with patches, 3201601, 2451630, 3622870. When I run the Desktop Discoverer and attempt to log in, one machine prompts the error Invalid username and password while the other does not. Ca

  • How to show pivot total in value only, and column in percentage only

    Hi All, I want to show pivot table by column percentage only (no value), but total in value only without showing percentage. How to do that? Thank you, Ling

  • Plugin problem in JSP page with applet

    i am using applets in my jsp page. the applet works properly if the java plugin is installed. it is not working with the default jvm. my question is if any client who does not have java plug in, views the page the plugin should be downlaoded automati