Can subclass use a method in supercalss as the implementation of interface?

Assume P is the superclass of S. S implements interface I. Both P and I have the same method m. Must I implement m in S?
Thanks.

It depends.
If m is public then it is already inherited so you don't have to unless you want a overriding implementation.
If m is private, it is not, so you have to.
If it is protected, the Super Class method cannot hide the public method in the interface, so again, you have to.
HTH.
-o12

Similar Messages

  • How can I use an IF ELSE statement and the xdoxslt: get_variable together?

    First of all, I'm a big fan of this forum and I just want to thank the community for helping make the BI Publisher world a better place.
    I'm trying to populate a table with a years worth of data with the column=PRODUCT and row=month of DATE. Here's the catch, not all of the months will have data. So here's where my problem is, I'm not able to use an IF ELSE statement along with a XDOXSLT:GET_VARIABLE expression so that if there's no data for that month the default value will be 0.
    Can someone help me find a solution to either one of the attempts below or a completely new method? Thanks!
    BP4 = numeric month value using DATE (more code to pull only month from DATE not included here)
    JAN1 = PRICE if data exists, else 0
    1) I tried this and it didn't work:
    <?if: xdoxslt:get_variable($_XDOCTX,'BP4'),01 then xdoxslt:set_variable($_XDOCTX, 'JAN1',PRICE) else xdoxslt:set_variable($_XDOCTX, 'JAN1',0) end if?>
    <?xdoxslt:get_variable($_XDOCTX,'JAN1')?>
    <?end if?>
    2) I tried this and it didn't work:
    <?xdoxslt:ifelse(xdoxslt:get_variable($_XDOCTX,'BP4')='01',xdoxslt:set_variable($_XDOCTX, 'JAN1',PRICE),xdoxslt:set_variable($_XDOCTX, 'JAN1',0))?>
    <?xdoxslt:get_variable($_XDOCTX,'JAN1')?>
    <?end if?>
    3) I tried this and it didn't work:
    <?xdofx:if xdoxslt:get_variable($_XDOCTX,'BP4')='01' then xdoxslt:set_variable($_XDOCTX, 'JAN1',PRICE) else xdoxslt:set_variable($_XDOCTX, 'JAN1',0) end if?>
    <?xdoxslt:get_variable($_XDOCTX,'JAN1')?>
    <?end if?>
    sample XML:
    <ROW>
    <Name>Craig Hernandez</NAME>
    <DATE>2013-01-01T00:00:00.000+08:00</DATE>
    <PRICE>31</PRICE>
    <PRODUCT>BPD</PRODUCT>
    </ROW>
    -DrT
    Edited by: 990965 on Feb 28, 2013 8:27 AM

    let me clarify my logic, the template 1) searches for the relevant PRODUCT (in the case below, it searches for BPD which is the column in the table) 2) searches for the relevant month in DATE (which is the row in the table) 3) if data exists, get PRICE else default to 0
    Variable definitions:
    BP4 = numeric month value from DATE (more code to get this value not included here, but it works...)
    JAN1 = set to PRICE if data exists for that month, else 0
    the query is only pulling all of the existing data, so if there's no data for March then there wouldn't be a March entry in the xml. In the sample xml below, we only have data for the first two months (Jan, Feb) so that's the only data in the xml. I can't check if PRICE is null because the xml will not have any data for March.
    I've read through other threads and it seems that BI Publisher can't use an IF THEN ELSE with the XDOXSLT:GET_VARIABLE. I sent the template and xml to you.
    Sample XML:
    <ROW>
    <Name>Craig Hernandez</NAME>
    <DATE>2013-01-01T00:00:00.000+08:00</DATE>
    <PRICE>31</PRICE>
    <PRODUCT>BPD</PRODUCT>
    </ROW>
    <ROW>
    <Name>Craig Hernandez</NAME>
    <DATE>2013-02-01T00:00:00.000+08:00</DATE>
    <PRICE>30</PRICE>
    <PRODUCT>BPD</PRODUCT>
    </ROW>
    Edited by: 990965 on Feb 28, 2013 8:30 AM

  • HT4818 Can you use both Bootcamp and Parallels with the same Windows 7 installed

    I have Parallels installed with Windows 7.  Can I use both Bootcamp and Parallels on the same machine depending on whether I just want to work in Windows all day (Bootcamp) or alternate during the same session (Parallels)?

    You can, yes. But there is a complication: once you activate windows it will only be activated for one of the two methods you use. So, let's say you install into boot camp and activate windows. You can then install Parallels and it will find your boot camp installation, but when running in Parallels, Windows will report that it is not activated. Or, you can activate it in Parallels and when running in Boot Camp Windows will report that it is not activated. The reason for this is because Windows thinks it is running on different computers depending on how you boot it. This may not be an issue for you if you run Windows a lot one way and just occasionally the other way, so be sure to activate Windows in whichever method you use more often. Hope this helps!

  • HT204053 If I have set up my Mac with two different users,  can I use two different Apple IDs on the same Mac?

    If I have set up my Mac with two different users,  can I use two different Apple IDs on the same Mac?

    Each user account may have its own Apple ID.

  • I am receiving a new ipad (3 i guess) from my mom who is in the U.S but i am currently in the philippines. I ofcourse, want to have apps,games,movies etc. can i use an itunes giftcard (also from the U.S) to buy my apps without any problems?

    i am receiving a new ipad (3 i guess) from my mom who is in the U.S but i am currently in the philippines. I ofcourse, want to have apps,games,movies etc. on it. can i use an itunes giftcard (also from the U.S) to buy my apps without any problems?

    No.
    iTunes terms of service:
    The iTunes Service is available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the iTunes Service from outside these locations. Apple may use technologies to verify your compliance.

  • Can I use an airport extreme to extend the range of my wireless modem

    Can I use an Airport Extreme to extend the range of my wireless modem?
    At one end of my house I have a dual band wireless ADSL modem which provides my internet connection and I want to extend (improve) the wireless coverage to the other of the hosue where my Apple TV (2nd gen) is located. I have being trying to extend my wireless network with an Airport Extreme but so far without success. I can get the Airport to join the wireless network, but I suspect that it is only acting as another client and not actually extending the wireless range. There is a setting in the Airport configuration to "extend and existing network", however when I choose this option the Airport no longer connects to my existing wireless network and I am beginning to suspect that this fuction only works with another Apple device (Airport Extreme or Express).
    Has anyone been able to extend the range of a third party wireless router / modem with an AirPort Extreme? If so, any advice that you can offer wold be appreciated.
    Regards
    Michael

    Thanks Tesserax,
    Your answer has confirmed my suspicions.
    Option 1 from your suggested solutions is not a goer because the modem and Airport Extreme are in different parts of the house making it impractical to run a cable between the two devices. 
    I did try option 2 and bought a Netgear range extender, which according to Netgear it would work with my D-Link modem - not.
    However I have managed to work around the problem (sort of) by using the Airport Extreme to create a wireless network between my iMac 27 and my Apple TV. The idea is that the iMac will act as a router between ethernet connected ADSL modem and the wirelessly connected Apple TV.
    The good news is that I am now able to play the content from my iTunes library on my Apple TV without interruptions due to a poor wireless connection . Although the connection from the Apple TV to the internet is not working I think this is most likely just a configuration issue and for me it is not really a show stopper.

  • Can I use my creative cloud account at the same time for my iMac and my MacBook?

    Can I use my creative cloud account at the same time for my iMac and my MacBook?

    Thank you Sheena!!
    Guy
    Op 2-jan.-2015, om 12:16 heeft Sheena Kaul <[email protected]> het volgende geschreven:
    Can I use my creative cloud account at the same time for my iMac and my MacBook?
    created by Sheena Kaul <https://forums.adobe.com/people/Sheena+Kaul> in Adobe Creative Cloud - View the full discussion <https://forums.adobe.com/message/7059158#7059158>
    Hi Guy Heyligen,
    Absolutely. You can use the creative cloud account on two machines.
    You may also refer to the link below:
    Creative Cloud Help | Creative Cloud / Common Questions <http://helpx.adobe.com/creative-cloud/faq.html>
    Regards,
    Sheena
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7059158#7059158 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7059158#7059158
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Creative Cloud by email <mailto:[email protected].com> or at Adobe Community <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=14&container=46 70>
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624 <https://forums.adobe.com/thread/1516624>.

  • I want to hook up a mac mini and us my tv as a monitor. how can I use airplay from my phone on the mac mini like i can with an apple tv (without having to buy an apple tv!). the airplay capabilities i want to use are mirroring and streaming from my iphone

    i want to hook up a mac mini and us my tv as a monitor. how can I use airplay from my phone on the mac mini like i can with an apple tv (without having to buy an apple tv!). the airplay capabilities i want to use are mirroring and streaming from my iphone!

    Download AirPlayer for Mac - Transforms your Mac into an AirPlay-compatible display. MacUpdate.com

  • HT204053 Can I use an icloud email address as the primary email address for an Apple ID?

    Hi There
    Can I use an icloud email address as the primary email address for an Apple ID?

    Whenever you create a new icloud email it is an Apple ID, but if you previously had an Apple ID you cannot use the new email to replace the old one. You have to abandon the old accout and you will lose all the content you had with that account. But what I did was upload all my itunes to amazon cloud, these were the only purchases I had. I already bought books from kindle and I now rent movies from amazon instant video. Everytime I log in I use my icloud email and password. I just used it to sign in to support communities.
    The notification that you posted about changing your Apple ID was present when I created my icloud email and made the change.

  • Can I use my norwegian iPhone 4 in the US for a few weeks?

    Can I use my norwegian iPhone 4 in the US for a few weeks?

    So I have lived in Daegu, South Korea for 9 months now. And our iphones work perfectly.
    Thankfully we didn't sell our phones in NZ, I had a look online and NZ doesn't lock IPhones to their networks like other countries.
    We went to SKT (in Daegu / National University of Ed) and bought new simcards for $10 each.
    Then signed up for contract / plans.
    We pay roughly $50 a month for unlimited data, 200 minutes, 600 text messages.
    It costs $9 to roam overseas a day.
    We've managed to travel to Japan and Hongkong using our South Korean sims.
    It' been pretty succesful for us.
    All I can say is, do heaps of research peeps, and don't stress :-)

  • Can i use my iphone 5 charger for the ipad air

    Can I use my iphone 5 charger for the ipad air?

    It's really not recommended. The iPhone's 5w charger does not output enough current to properly charge the battery. It -may- charge but if it did, it would charge the iPad very slowly.
    This would be like trying to fill a bucket of water (iPad) with a squirt gun (5w charger)
    Also under iOS 7, the charging requirements are much stricter than iOS 6. You'll likey get an error message if you try.

  • Can i use 2 channel of USRP at the same time to receive a signal?

    Hi everyone,
    i want to do an implementation of time difference of arrival estimation between two receivers (antenna). I have an USRP  kit, daughterboards and two antennas. There is only one source signal ( it is transmitted in anywhere it doesnt matter).
    Can i use two channel of USRP at the same time to receive  a signal ?
    I need the original source signal and time-shifted version of this signal. 
    Many thanks for your help.
    Sincerely yours,
    Uysal.
    Solved!
    Go to Solution.

    Hello,
    I found this forum post which may be helpful to you.  It looks like you can't receive from the two antennae in the way that you describe.  I think this would require a two USRP setup.
    Jon F.
    Applications Engineer
    National Instruments

  • I have an imac bought late 2013, can i use it as a display for the new mac pro? I also want to use windows 8 on it, would this work with parallels or bootcamp?

    I have an imac bought late 2013, can i use it as a display for the new mac pro? I also want to use windows 8 on it, would this work with parallels or bootcamp?

    Yes, it supports target display mode. Windows can be run with either Parallels or Boot Camp.

  • I want to transfer files from a functioning hard drive in a nonfunctioning MacBook Pro to an external drive. I have an IDE/SATA drive adapter. The files won't fit on the drive for a working computer I have. Can I use it to transfer files to the external?

    I want to transfer files from a functioning hard drive in a nonfunctioning MacBook Pro to an external drive. I have an IDE/SATA drive adapter. The files won't fit on the drive for a working computer I have. Can I use it to transfer files to the external drive?

    Good luck and you are welcome.
    Like I said, I bought one of their inexpensive enclosures and now can use the hard drive just as a source for the files that are on it...my external drives are much larger and faster so I just plug that drive in when I need something from it.
    This one is on sale for $16 http://eshop.macsales.com/item/OWC/ES2.5BPU2S/

  • In my SOA Composite, Can I use file/FTP adapter to get the EDI X12 850

    Our requirement is to build a SOA Composite to dump all the details in a EDI X12 850 ( Purchase order ) document in to a database table. In my SOA Composite, Can I use file/FTP adapter to get the EDI X12 850 element details to map them to a base base columns.

    Drop the File Adapter to the left lane of the composite i.e., Services lane...
    Go to Step 2, give a meaningful name....
    Step 3, select "define from operation and schema"
    Step 4, select the operation type as "read"
    Step 5, select physical path and give the folder path in the "Directory for incoming files" field.,
    Step 6, select wildcards and give the expression depending on the file name it would be at run time...
    Step 7, select the polling frequency as required....
    Step 8, in the URL field, adjacent to that , select "browse for schema file" and select the XSD which you have exported from B2B Editor.
    say next and finish, you will be good to go.
    Hope this helps,
    Thanks,
    N

Maybe you are looking for