2 Questions (I can't think of a good subject)

1) you can put 2 strings together using the + operator , is it possible (if so how) can i make it for my own objects do that , such that i can write my own addition or somthing method , and i'm trying to avoid somthing like obj1.add(obj2) , i would prefer , obj1+obj2
2) in an abstract class , i can setup methods to be in any class that extends it, is there a way to setup constructors?

1) you can put 2 strings together using the +
operator , is it possible (if so how) can i make it
for my own objects do that , such that i can write my
own addition or somthing method , and i'm trying to
avoid somthing like obj1.add(obj2) , i would prefer ,
obj1+obj2No. Java does not have operator overloading.
>
2) in an abstract class , i can setup methods to be
in any class that extends it, is there a way to setup
constructors?You mean abstract constructors? No. Constructors are not inherited and cannot be abstract.

Similar Messages

  • Modify TEXTBOX (I can't think of a good title)

    My program creates a TEXTBOX with a message in it(it says TYPE HERE). What I would like to have happen is the message will disappear when someone starts typing in the box. Right now the existing message scrolls to the right as characters are typed.
    I can seems to find this solution. I'm thinking it might be possible to do this by GraphicsWindow.hide()/GraphicsWindow.show(), but can't seem to get it right.
    This is my very first question, so if I am breaking some rules I apologize. Thank you.
    My code follows (it has some extra stuff not actually involved in the program, because I copied this code from someone else. Whose name I forgot, sorry)
    'Initialize a user friendly window
    GraphicsWindow.BackgroundColor = "Cyan" 'An 'easy on the eyes' color
    GraphicsWindow.Height = 230 'Make it 230 pixels tall
    GraphicsWindow.Width = 600 'and 600 pixels wide
    GraphicsWindow.BrushColor = "Black" 'Make all text black
    GraphicsWindow.FontSize = 20 '
    textbox = Controls.addtextbox(10,50)
    Controls.SetTextBoxText(textbox "Type Here")
    Controls.SetSize(textbox,580,40) 'Set it to be 20 pixels less then the width of the window
    btnCheck = Controls.AddButton("Test Program",110,100) 'Add a button for checking the input
    txtOutput = Shapes.AddText("mytest") 'Add some output text to change later
    Shapes.Move(txtOutput,10,150) 'Move it below the button
    Controls.ButtonClicked = ButtonClick
    Sub ButtonClick
    EndSub

    Without extension i don't know an other way, but with LitDev extension you can do almost everything, except flying:
    tb = Controls.AddTextBox(10,10)
    Controls.SetTextBoxText(tb, "Type Here")
    LDShapes.SetShapeEvent(tb)
    LDShapes.ShapeEvent = OnShapeEvent
    Sub OnShapeEvent
    ' "MouseDown" ShapeEvent is NOT working for TB !
    'If LDShapes.LastEventShape = tb And LDShapes.LastEventType = "MouseEnter" Then
    If LDShapes.LastEventType = "GotFocus" And cleared <> "True" Then ' or "MouseEnter"
    Controls.SetTextBoxText(tb, "")
    cleared = "True"
    EndIf
    EndSub
    Or
    initText = "Type Here"
    tb = Controls.AddTextBox(10,10)
    btn = Controls.AddButton("Demo", 10,50)
    Controls.SetTextBoxText(tb, initText)
    LDShapes.SetShapeEvent(tb)
    LDShapes.ShapeEvent = OnShapeEvent
    Sub OnShapeEvent
    If LDShapes.LastEventType = "GotFocus" And Controls.GetTextBoxText(tb) = initText Then
    Controls.SetTextBoxText(tb, "")
    ElseIf LDShapes.LastEventType = "LostFocus" And Controls.GetTextBoxText(tb) = "" Then
    Controls.SetTextBoxText(tb, initText)
    EndIf
    EndSub
    Look at IntelliSense help in LitDev Extension for
    LDShapes...  .SetShapeEvent, .ShapeEvent, .LastEventShape, .LastEventType

  • My wife and I have a family account at Verizon and are thinking of getting the IPhone 4S.  My question is can we both use the functions of Icloud on the same account at Verizon or do we have to have separate accounts to be able to use all the features

    My wife and I have a family account at Verizon and are thinking of both getting the IPhone 4S.  My question is can we both use all of the features of Icloud with one account at Verizon or do we need to have separate accounts?

    If Mail in Mavericks is the same as earlier versions you can select accounts in the sidebar, so that you can either display the inboxes for individual accounts, or the contents of all the account inboxes. (If the accounts don't show click the disclosure triangle next to 'INBOX'). The layout may have changed since the version I have - Snow Leopard - but you should be able to do the same thing.

  • HT201363 Good evening ...  I have an account in appel and I have purchased a card  But I can not buy applications because the applications you want to push it under the answers to security questions and I forgot the answers to these questions  How can I c

    Good evening ...
    I have an account in appel and I have purchased a card
    But I can not buy applications because the applications you want to push it under the answers to security questions and I forgot the answers to these questions
    How can I change my answers to security questions??

    Hello, yazanalmasri0.
    If you need to reset your security questions and have a rescue email attached to your Apple ID, this article will help you with this issue.
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    If you are still unable to reset your security questions or do not have a rescue email associated with your account, you will need to reach out to our account security team. 
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Cheers,
    Jason H.

  • Hello-- I'am thinking off making an app to the iphone, but i'am not sure aboutsomething. the app should get some alarms from a specific phone number, and my question is, can i make an app that can receive message from a specific phone number ?

    Hello-- I'am thinking off making an app to the iphone, but i'am not sure aboutsomething. the app should get some alarms from a specific phone number, and my question is, can i make an app that can receive message from a specific phone number ?

    This needs to be asked at http://developer.apple.com/

  • HT5312 good day ) i have question ) how can i reset my security question can i reset my security questions... because i forgot them...

    good day ) i have question ) how can i reset my security question can i reset my security questions... because i forgot them...

    Your profile says you have Mavericks, is that true?  yes
    Do you have an Apple logo in the top left corner of your screen? yes
    When you click on it, do you have an App Store option in the drop down menu? yes
    i have no this blue sentence...

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • HT5787 If i know email ( but i dont have acces to it ) and i dont have secret questions how can i recover my icloud account ?

    If i know email ( but i dont have acces to it ) and i dont have secret questions how can i recover my icloud account ?
    I'n my company ( pawn shop ) i hope i transleted fine , i bought an iphone wich it seems to be ok at the first time.
    That was on 26.11.2013 ( as can be seen in my pawn contract and billing ) . after 2 weeks i found a client to buy my second hand iphone and the i saw my mistake it is icloud blocked i need that password so i can reset the iphone to sell it. how can i manage this problem ? i can provide all my billings, contracts, society data everything.

    If you know the primary email linked to the account but do not have access to it or the answers to the security questions, then the next best thing to do is call Apple at 800-275-2273 and ask for Account Security.  They will ask you for two pieces of information from the account in order to unlock it.  The options are usually the security questions (each question counts as one piece), the credit card linked to the account, and either a device serial number or device verification code that they will send you.
    After this verification is complete they can send the reset link for your password to any email you choose.  Please be aware that if they verify you with something other than two security questions, there is a 24 hour wait before the email arrives.
    Good luck!

  • Can U Think of Any Situation Where U Find VENDOR Info. Populated for a STO?

    Hi,
    Can you think of any situation where you will find VENDOR information populated for a STO moving stock from a Plant to Store under the same company code?
    I got an error ("Enter goods for vendor XXXX only") and this was triggered by the fact that one STO had vendor information in the delivery document. The outcome of this was that every STO beneath this STO could not be GR, but every STO before and including the STO were GR without any issues....
    Your response is higly appreciated..
    Thanks

    SegeTx,
    I am not sure exactly what you mean when you say "Vendor information populated for an STO".  Is this a UB STO?
    Tell me exactly what transaction you are performing, and the data you are entering, when you get the GR error.
    Generally, when you set up master data for a STO, you have to assign a vendor to the plant. It is possible that somehow the source plant has become un-assigned from the vendor.   WB03, clik past any warnings, enter the plant.  In the upper right corner, there should be a vendor.  If nothing is there, then you have to re-assign the vendor to the source plant.  MK02 enter the vendor you wish to assign to the plant, and the purch org you should use for the STOs.  Execute.  Select  extras > addl purch data.  enter the plant.  Save.
    Best Regards,
    DB49

  • Recently purchased a Macbook Pro with screen of retina of 13,3 inches. My question is, can I install the new Final Cut Pro X , is capable of withstanding the app? Or that Final Cut is convenient to install?

    Recently purchased a Macbook Pro with screen of retina of 13,3 inches. My question is, can I install the new Final Cut Pro X , is capable of withstanding the app? Or that Final Cut is convenient to install?

    Generally any Mac made since 2009 can handle FCP X.
    Your small screen is not ideal unless you are young and have good vision.
    However, you needn't ask whether or not your computer is suitable as you can find out yourself by downloading the free 30 day trial.
    http://www.apple.com/finalcutpro/trial/
    In addition, to get you up to speed with FCP X, you can also watch 2 hours of free video tutorials here
    http://www.izzyvideo.com/final-cut-pro-x-tutorial/

  • I want to change my password, somebody is using my ID,i follow the rules but unfortunatly i forgot the answer of safety question what can i do

    i want to change my password, somebody is using my ID,i follow the rules but unfortunatly i forgot the answer of safety question what can i do?
    i recieve a mail form apple team showing reset password link but its not opening

    I rang Apple and they could noy help me.
    They are often pretty impatient with these questions.
    You will need to contact iTunes Support for this. Be prepared to supply the answers that you do know, plus some additional personal information that only you will know.
    Start here: https://expresslane.apple.com/
    Click iTunes > iTunes Store > Other iTunes topics and questions. Eventually you get to a point at which you can compose a thoughtfully worded email. Apple will respond via email within a day. Be sure to check your spam folder for this reply.
    Normal business hours apply, so you may have to wait until Monday. They will ask you for more personal information, and then you will have to wait for another reply which will provide instructions for resetting your password as well as answers to the security questions. Good luck!

  • Okay i want to go to smart phone with 2 year contract. i am wavoring between the 2g to 4g plan. verizon has decided not to chat with me for the moment. because i'm annoying. my question is, can i alter the G factor as i go if i need more need less and lea

    okay i want to go to smart phone with 2 year contract. i am wavoring between the 2g to 4g plan. verizon has decided not to chat with me for the moment. because i'm annoying. my question is, can i alter the G factor as i go if i need more need less and leave everything else the same?

    you can start out low and increase your data allowance as you need throughout the month, backdating it to the beginning of the billing cycle so you don't have overages; however, I found out the hard way that you cannot decrease your data allowance during the month and backdate it so you don't overpay for unused data.
    what I do now is reset my data allowance to 2GB at the beginning of every bill cycle and then increase it if I get warnings that I'm going to go over... and I check it 3 days before my bill cycle ends to see if I think I might need to bump it up before the end of the bill cycle
    it's annoying, but otherwise I end up paying thru the nose for overages or overpaying for data I don't use
    BTW, I'm on the More Everything plan, which is the same plan you'll get unless you go Edge (where you pay the full price for the phone but don't get the 2-year commitment to it)

  • I know this is a stupid question but can u put movies on thi 5G ipod?

    i know this is a stupid question but can u put movies on thi 5G ipod? like longest yard, anchor man, ect.
    Nano 4GB black,Moto RAZR V3 black, PSP, all kinds of cases for nano,radio/remote   Windows XP   <img src="http://i36.photobucket.com/albums/e13/superman5656/s.gif"align="right"</span>

    i dont have one yet i was just wondering i was thinking about it thanks
    Nano 4GB black,Moto RAZR V3 black, PSP, all kinds of cases for nano,radio/remote   Windows XP   <img src="http://i36.photobucket.com/albums/e13/superman5656/s.gif"align="right"</span>

  • What can I do with perfectly good Graphite Base Station?

    I have a Graphite Base Station that works perfectly fine, never a problem. Except, In order to print from upstairs via my iBook or the upstairs desktop, I have to yell downstairs "Wake up the office Computer!"
    I'll enjoy the idea of 'better' security that the Extreme offers but I'm wondering..... what I can do with a perfectly good Graphite BS? My understanding is that I cannot use it as a bridge, so are there any creative uses for a Graphite BS or should I just pack it back in the box and list it on eBay?
    iBook G4, iMac G5, iPod Mini 6Gb   Mac OS X (10.3.9)  
    iBook G4, iMac G5, iPod Mini 6Gb   Mac OS X (10.3.9)  

    Stephanie,
    A true dilemna. And a simple technical issue, to which there are 4 simple answers. Can't say I can help choosing one.
    1. Reconfigure the iMac G5 energy saver (assuming iMacG5 is office computer, rather than upstairs desktop) to put the display to sleep, and the disks too, but keep the computer awake. Not sure of the energy consumption required for that, or if it's noisy. My PMG4 MDD "Windtunnel" sounds like a 737 at 100 paces, so this isn't an option I use.
    2. AirPort Express, just for the printer. Slightly cheaper than the AEBS, but you get printing without the iMacG5 in the loop. It doesn't even have to be in the same room as the iMacG5.
    3. A new printer for upstairs. Maybe the cheapest option of all.
    4. The AEBS. You should also see a 5x increase in the intra-Mac file transfers - depends on the AirPort card in the iBook and the wireless card in the desktop computer. Could be sentimental about the Graphite Base Station (Apple users tend to be like that) and keep such a thing of beauty, or sell it for sweetie money.
    Now I only have one question, which I'm sure someone else can handle. Can the AEBS (or AirPort Express) turn on the printer from it's sleep mode, just like the Mac can ? We can sort of assume that it can, but I'd prefer if some said "it does for me".

  • My apple is not activating,Asking for Apple ID &p.word, I have entered the apple ID which i was using to download all apps,but it wont work, Now system is saying that your apple Id is wrong, My question is Can there be two apple IDs?

    My apple is not activating,Asking for Apple ID &p.word, I have entered the apple ID which i was using to download all apps,but it wont work, Now system is saying that your apple Id is wrong, My question is Can there be two apple IDs? My apple ID is my Yahoo mail it self, but not able to log in to  Icloud, Can any body guide, Why, I can not.

    Hi dip_kinu,
    I apologize, I'm a bit unclear on exactly what device you are trying to set up and what is happening when you try to do so. If you are having issues remembering your Apple ID, or feel like you may have set up multiple Apple ID's, you may find the following page helpful:
    Apple - My Apple ID: Find your Apple ID
    https://iforgot.apple.com/appleid
    Regards,
    - Brenden

Maybe you are looking for

  • Problem in RTF template

    Hi all, I use Bi publisher version (11.1.6 ) First Question : What is the best template type for making operational reports not statistical report ( RTF template or PDF template or others ) ? -- Second Question : when i try to make report template us

  • Had update issues but now my iphone is in a loop of the apple sign then the circling thing, itunes doesnt even pick it up, cant get past this point!! ? any help?

    had update issues but now my iphone is in a loop of the apple sign then the circling thing, itunes doesnt even pick it up, cant get past this point!! ? any help?

  • Issue with SOAP Header

    Hi All, I am beginner in SOA . Please excuse me if my phrasing is not quite right . Please do let me know if you require additional information to answer this question Jdev : 11.1.1.3.0 UseCase : Trying to learn SOA . In this regard, I created a SOA

  • Drilldown by  Customer Country

    Hi I am using BI 7.O in which i have a customer outstanding query using  0FIAR_C03 infocube.In this i require drilldown based on Customer country  but the present country characteristic is showing  Billing country (0COUNTRY). I want to use country at

  • Java Class Web Service

    Which the best way to make a webservice based on a java class in JDeveloper 10.1.2? I need to make a webservice that make some queries in views of BPEL's dehydration DB, but I would not like that this webservice was a BPEL process in the Process Mana