Using derived obj as a parameter in one of the methods

Hi
I have a class "class1", which is the parent class. Another class "class2" is derived from class1 (extends class1)
In class3, there is a method "method3" that uses "class1" obj as a parameter.
I need to call the same method "method3" in class2 also, by passing "class2" obj as a parameter.
Is there a way that I can do this.
Any help is greatly appreciated.

If the method takes a "class1" type as an argument, then you can pass it anything which is of type "class1" or extends from it. So yes you can pass that same method a "class2" type.

Similar Messages

  • Can i use a 2010 24 led screen with one of the new 2012 macs with thunderbolt technology?

    can i use a 2010 24 led screen with one of the new 2012 macs with thunderbolt technology?

    Yes. Any standalone display which can be connected to a Mini DisplayPort, with or without an adapter, can be plugged into a Thunderbolt port without any additional adapters.
    (65766)

  • I use an iphone 3gs can i set one of the song as ring tone or i will only be able to use the inbuilt ringtones?

    i use an iphone 3gs can i set one of the song as ring tone or i will only be able to use the inbuilt ringtones?

    yes you can
    A. how to make a ringtone using iTunes
    First, open up iTunes in order to make a ringtone using iTunes. Find the song you want to turn into a ringtone by browsing through your music library.
    Next, find exactly what part of the song you want to make a ringtone using iTunes. For example, if you want to use a specific section of the song from 21 seconds to 40 seconds, make a note of where you want the ringtone to begin and end.
    Now, right click on the song you want to turn into a ringtone. Click "Get Info". Now, in order to make a ringtone using iTunes, click the "Options" tab.
    Check the "Start Time" check box. Type in the point in the song where you want the ringtone to start in the format "minute:seconds" (e.g. the second mark would be 0:20). You can also be more precise by adding a period and putting milliseconds in after that (e.g. 0:20.150, would be 20.150 seconds). Also, click the "Stop Time" check box and enter where you would like the ring tone to end. Keep in mind ringtones can only be around 39 seconds maximum. Press "Ok". We are almost done making a ringtone in iTunes
    Now, right click on the same song. Select "Convert AAC Version". If it is in another file format, you can go to "Edit" then "Preferences" and under the "General" tab click "Import Settings"; change the file format to AAC. After you select "Convert AAC Version" a new file will be created, but it will only be the segment of the song that you specified earlier.
    Now, you have to find the file you just created. Right click on the new, shorter song and select "Open in Windows Explorer". The file extension should be .m4a. Rename the extension to .m4r by right clicking the file and selecting "Rename".
    Now you can delete the shortened version of the song in your iTunes library. Then, double click the .m4r file and it will loaded into your iTunes Ringtone list. Now you can make a ringtone using iTunes!

  • Gendata error when using MessageFromExtr rule on a field in one of the FAP

    This is the error:
    Error in RULLoadFASR(): Unable to locate Form Grouping identified by <;;;;>.
    Tip: At least one Group (GRP) in the BDF needs to reference a Group1;Group2;Group3 value of <;;;;>.
    There are also other errors. But this was the first.
    While Gentran runs very fine, gendata gives errors. To say this happens only while using MessageFromExtr rule on a field in one of the FAP. The same BDF file works good when I use Move_it or some other rule.
    The .FAP file looks like this for only the field maapings. Using Studio Version of Oracle Documaker Studio.
    A,F8," ",N,N,N,N,;;,"MESSAGEFROMEXTR","ABCD","",;;,50,0,0,30,581,0,15,0\TBLOFF,XYZYX
    Any Help??

    The Key1 and Key2 table are already updated. This happens when using MessageFromExtr rule.
    Also, in the extract file I am having some value in the tag "<J:L>TextMessage". As this rule supports <J:L> it should print teh text message on the field, but it gives error unable to retrieve record and other.

  • Use bean to pass  dynamic parameter from one jspto another

    Hi Everyone
    I am trying to use a bean to pass parameter instead of passing param through querystring . This is the situation:
    in jsp1 I query a table and get the result listed, when I click every row of the record , I want some special parameters passed to jsp2 through bean, I found I can't get these param in jsp2 simply using getProperty method, It seems I must use form in jsp1 to activate jsp2 which use bean to pass param, Can I do it using linking archor? Because I don't want my params to list in the URL whem activate jsp2, I do not want to use the following format:
    <a href="ViewQueryDetail.jsp?string_num=<%=string_num %>&depart=<%=depart %>&l_time=<%=l_time %>&title=<%=encode_title %>  target="_top"><%=title%>
    If anybody had done this, kindly guide me.
    Thanks in advance.
    xufang</a>

    Thanks for your kindly reply, I followed your direction and now I get java.lang.NullPointerException when I link to jsp2. My code is here:
    jsp1:
    <%
    prjxnxx.db.BnParamDtxx MyBean = new prjxnxx.db.BnParamDtxx();
    prjxnxx.db.BnParamDtxx MyBean1 = new prjxnxx.db.BnParamDtxx();
    while(bean.next()) { %>
    <tr>
    <%!
    int conflag ;
    String depart ;
    String l_time;
    int dtnum ;
    String title ;
    String encode_title;
    String content ;
    //Object object_content ;
    %>
    <%
    conflag = bean.getDataInt("conflag");
    depart =bean.getDataString("depart");
    l_time =bean.getDataString("l_time");
    dtnum = bean.getDataInt("dtnum");
    //String string_num =String.valueOf(dtnum);
    title = bean.getDataString("title");
    //request.setAttribute("title",title);
    //request.setAttribute("depart",depart);
    //request.setAttribute("l_time",l_time);
    //request.setAttribute("dtnum",string_num);
    %>
    <%
    //if(request.getAttribute("MB")==null){
    MyBean.setDepart(depart);
    MyBean.setTitle(title);
    MyBean.setL_time(l_time);
    MyBean.setDtnum(dtnum);
    request.setAttribute("MB", MyBean);
    MyBean1 = (prjxnxx.db.BnParamDtxx)request.getAttribute("MB");
    depart = MyBean1.getDepart();
    title = MyBean1.getTitle();
    l_time = MyBean1.getL_time();
    dtnum = MyBean1.getDtnum();
    System.out.println(depart);
    System.out.println(title);
    jsp2:
    <%!
    String content ;
    int conflag ;
    String depart ;
    String l_time;
    int dtnum ;
    String title ;
    String query;
    %>
    <%
    prjxnxx.db.BnParamDtxx MyBean2 = new prjxnxx.db.BnParamDtxx();
    MyBean2 = (prjxnxx.db.BnParamDtxx)request.getAttribute("MB");
    depart = MyBean2.getDepart();
    title = MyBean2.getTitle();
    l_time = MyBean2.getL_time();
    dtnum = MyBean2.getDtnum();
    %>
    Everything is ok until I run the code
    MyBean2 = (prjxnxx.db.BnParamDtxx)request.getAttribute("MB");
    depart = MyBean2.getDepart();
    Can you explain why I can use getAttribute in jsp1 right yet not in jsp2?
    What is the difference between request.getAttribute and pagecontext.getRequest().getAttribute ?
    I am alway grateful for there are someone like you who can help person when they are in need!
    xufang

  • Can an applet call one of the methods of servlet??

    hi everyone...
    i m very new servlet and applet programming and i have come accross a problem....
    i m using a applet which establishes connection with the servlet(residing on server)..i want to use few of the methods of the servlet....
    now is it possible tfor me to call the methods of this servlet using its object.???
    please help me..
    thanx in advance

    first of all thanx a lot for the reply...
    but i wanted to know can an applet call any other
    function of servlet other than get and post....as i
    hacve defined some more functions in servlet..
    please reply...I did this a while back (2003/4?) and unless it's changed you cannot do it directly, it must be GETor POST, then you could just use conditional logic to invoke another method.

  • I'm trying to print  an Ancestry document from an iPad 2 using air print onto a Canon 5350 (one of the printers ok'd by Apple) I am unable to change the print orientation from portrait to landscape.  That is I change it in printer settings but no use.

    I'm trying to print an Ancestry document from an iPad 2 using air print.  The printer is a Canon MG5350 (on the Apple approved list) I have no difficulty printing but only in portrait format.  I've tried changing printer preferences from my computer but even though the Canon accepts the changes it will not print landscape - can anyone advise please?

    Hi,
    How do you connect the printer to the XP machine ? If USB, you need to make that machine as a Print server. Please try this:
       http://techtips.salon.com/make-windows-computer-pr​int-server-11914.html
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • HT1343 if one is using windows 8.1 on a boot camped mac and you are using a mac keyboard . How does one unlock the numbers  on the larger wired keyboard ( numbers keys to the right of the keyboard) instead of having to use the numbers at the top of the ke

    Question: I am using a mac , wired Keyboard, on  a windows 8.1 platform ( this is because I have boot camped my hard drive) Unfortunately when I change over from my mac set up into the windows 8.1 the key board does not behave like it does when I am using as a mac. The numbers , on the right of the keyboard , no longer function and I have to use the numbers at the top of the keyboard, very annoying. Can anybody let me know how I unlock the numbers on the right of my keyboard?
    Regards CM

    I have stated every issue I’ve had so far in a fairly clear and concise way. I think if you read what I wrote, it all makes logical sense as to what is going on. Windows 7/8 would work just as well on a Mac if it was supported the same way the OS is for other OEMs.
    As I stated earlier in the post, I’m having these same issues in windows 8, not just 8.1, which is the reason for the post. I know the difference between supported by drivers and not supported by the manufacturer. The fact that when Haswell mbp’s came out and no revision to bootcamp for the new hardware was released to fix issues with installing windows on the new hardware shows Apple clearly Is not supporting bootcamp as strongly as they advertise.
    I am being realistic on Apple having drivers early. Anyone with an MSDN subscription can download the RELEASE version of windows months ahead of the actual release, I’m 100% sure if any average consumer can do that by paying $100 and saying they are a developer, apple can do it just as easily.
    You aren’t much help, you haven’t answered really anything to my post, nor have you contributed any knowledge that wasn’t clearly posted above, so don’t say anything if you don’t have anything to contribute.
    By the way, my rant is directed at apple, as you can see because I am saying “Apple, if you are going to…” because this is an Apple forum on Apple’s website. It is not directed to end users, clearly.

  • [urgent] using a mask to put to pictures one other the other

    Hi
    I have two images: the first is the original, the second is blurred to remove the halos around the over-sharpened edges.
    Having the following mask, I would like to put the two images ons over the other. The original picture should appear in the black area and the blurred picture should appear white (transparent) area. Please click on the picture, else the white areas aren't visible.
    How to do this with photoshop CS4?
    I tried this but I find now way to put the mask in the same layer as the second picture.. I can only add it in a third layer.
    Thank you in advance for any advices.

    This picture is part of a video indeed.. I would like to do the superposition for each frame of the video.. by scripting.

  • When using Faces Show More Faces - how does one view the whole picture?

    I have too many pictures of babies - it would be great to be able to see them in context, to help identify all these kids that look like Winston Churchill... can't seem to find a way - any ideas?
    TIA

    Hi Terence,
    TY for your reply.
    I am not in Confirm Faces, however, I am in Faces>Find Faces - perhaps this sceen shot will clarify my location. I see no options available
    Thanks!

  • How to use INVOKE function with INT parameter types

    Can you tell me how to use invoke function with int parameter type ?

    Pass the int as an Integer.

  • How to store data file name in one of the columns of staging table

    My requirement is to load data from .dat file to oracle staging table. I have done following steps:
    1. Created control file and stored in bin directory.
    2. Created data file and stored in bin directory.
    3. Registered a concurrent program with execution method as SQL*Loader.
    4. Added the concurrent program to request group.
    I am passing the file name as a parameter to concurrent program. When I am running the program, the data is getting loaded to the staging table correctly.
    Now I want to store the filename (which is passed as a parameter) in one of the columns of staging table. I tried different ways found through Google, but none of them worked. I am using the below control file:
    OPTIONS (SKIP = 1)
    LOAD DATA
    INFILE '&1'
    APPEND INTO TABLE XXCISCO_SO_INTF_STG_TB
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    COUNTRY_NAME
    ,COUNTRY_CODE
    ,ORDER_CATEGORY
    ,ORDER_NUMBER
    ,RECORD_ID "XXCISCO_SO_INTF_STG_TB_S.NEXTVAL"
    ,FILE_NAME CONSTANT "&1"
    ,REQUEST_ID "fnd_global.conc_request_id"
    ,LAST_UPDATED_BY "FND_GLOBAL.USER_ID"
    ,LAST_UPDATE_DATE SYSDATE
    ,CREATED_BY "FND_GLOBAL.USER_ID"
    ,CREATION_DATE SYSDATE
    ,INTERFACE_STATUS CONSTANT "N"
    ,RECORD_STATUS CONSTANT "N"
    I want to store file name in the column FILE_NAME stated above. I tried with and without constant using "$1", "&1", ":$1", ":&1", &1, $1..... but none of them worked. Please suggest me the solution for this.
    Thanks,
    Abhay

    Pl post details of OS, database and EBS versions. There is no easy way to achieve this.
    Pl see previous threads on this topic
    SQL*Loader to insert data file name during load
    Sql Loader with new column
    HTH
    Srini

  • If I got one of the free books off of Itunes, how do I read it? I double click and it does nothing. Is it only to hook up to Iphones or Ipads?

    I got one of the free books of Itunes and I'm wondering how I read it.  I double click and nothing happens.  Is it only for Ipads and Iphones??

    If you have one of the public-domain books provided by Project Gutenberg (these are books published many years ago and which have therefore fallen out of copyright, such as the Dickens and Jane Austin books), you should be able to open it using Calibre:
    http://calibre-ebook.com/
    or one of the other applications that can open ePub format. Launch the app and point it to the book file, which will be in your iTunes folder, in iTunes Music (Media) -> Books.
    Regards.

  • Which one is the best way to collect config and performance details in azure

    Hi ,
    I want to collect the information of both configuration and performance of cloud, virtual machine and web role .I am going to collect all these details using
    java.  so Please suggest which one is the best way. 
    1) REST API
    2) Azure SDK for java
    Regards
    Rathidevi
    rathidevi

    Hi,
    There are four main tasks to use Azure Diagnostics:
    Setup WAD
    Configuring data collection
    Instrumenting your code
    Viewing data
    The original Azure SDK 1.0 included functionality to collect diagnostics and store them in Azure storage collectively known as Azure Diagnostics (WAD). This software, built upon the Event Tracing for Windows (ETW) framework, fulfills two design requirements
    introduced by Azure scale-out architecture:
    Save diagnostic data that would be lost during a reimaging of the instance..
    Provide a central repository for diagnostics from multiple instances.
    After including Azure Diagnostics in the role (ServiceConfiguration.cscfg and ServiceDefinition.csdef), WAD collects diagnostic data from all the instances of that particular role. The diagnostic data can be used for debugging and troubleshooting, measuring
    performance, monitoring resource usage, traffic analysis and capacity planning, and auditing. Transfers to Azure storage account for persistence can either be scheduled or on-demand.
    To know more about Azure Diagnostics, please refer to the below article ( Section : Designing More Supportable Azure Services > Azure Diagnostics )
    https://msdn.microsoft.com/en-us/library/azure/hh771389.aspx?f=255&MSPPError=-2147217396
    https://msdn.microsoft.com/en-us/library/azure/dn186185.aspx
    https://msdn.microsoft.com/en-us/library/azure/gg433048.aspx
    Hope this helps !
    Regards,
    Sowmya

  • What are the methods used for creating customer

    i have to upload a text file and create customer using idoc .can any one suggest the methods used to fullfil this requirement

    Hi,
    Upload the file using the function module GUI_UPLOAD into an internal table then try to pass the values from the file to the segments in the idoc DEBMAS03 using the function module MASTERIDOC_CREATE_DEBMAS to create the customer.
    Any doubts regarding you can clarify.
    Thanks&Regards
    Sarves

Maybe you are looking for

  • Nokia E65 Software (support pages)

    Hello, I've seen some new applications available for E65 at product pages/support ( http://europe.nokia.com/A4361156 ), Corporate Phonebook and Psiloc Wireless Presenter. As they are provided in the support page, I thought they were complete/free app

  • Optimizing a search for duplicate files in a filesystem

    We have a large directory that people have been dumping to for years (~200k files), and I want to go through and look for duplicate files. The first part of this was just scanning through and checking for duplicate file names.  I wrote a simple VI to

  • Enterprise services for create employee

    hi all, I need to know if there are any Enterprise Services to create an Employee? thanks!

  • WLST error in IPV6 enabled Linux machine

    Hi, My application creates and configures the weblogic domain for our product thru antInstaller script. The machine I'm installing our product is IPV6 enabled. I've already installed weblogic with using -Djava.net.preferIPv4Stack="false" as suggested

  • ADOBE Interactive form integration in Netweaver

    I have installed the Netweaver Developemnt Studi0 2.0.5 from SDN. When I checked the installation log it gives the some of the ADOBE form designer componet files  are missing from the initial source file extract(ZIP). Did anybody experienced the same