Help. Going crazy with subclass.

I am extending class Client with myClient. Why do I get a symbol not found in the myClient() constructor?
// File: Client.java
package testproj;
public class Client {
    public Client(String conn){
        String xyz=conn;
// File: myClient.java
package testproj;
public class myClient extends Client {
// Gives error on the myClient Constructor as follows:
// C:\App\testproj\src\testproj\myClient.java:5: cannot find symbol
// symbol  : constructor Client() location: class testproj.Client
    public myClient(String conn){  
        int x=1;
}

Typically when you extend a class it is because you do want to initialize, and probably use, what is in that class. This rings doubly true when you created the parent class specifically for extending it in this project.
For example, why on earth would you override foo with the exact same method? I realize both are empty and you probably intend there to be different code in each, but as it currently stands, there is no reason to override foo, the foo in MyClient is just simply not needed.
But in my opinion your real problem here is you haven't figured out what constructors and methods are for. Constructors are for initializing a class, methods are for java code. Your example falls into some wierd gray area the myVar=xyz definitely fits and belongs in the constructor, but adding the additional text should probably be handled by a method since it appears that getting the different strings presumably for output is the crux of what you are trying to do.
The reason you don't want to initialize is because you think " take care" will somehow get added in if you run it the way you have it, which is exactly why this sort of stuff should not be in constructors. But rest assured, for as you have it, the string will not contain "Loser take care" because as soon as you set it to that you turn around and reset it to "Loser terminate his a**". Any other concerns you have about initialization the parent are equally unfounded in the code you provided.
Plus you don't seem to be aware that there can be more than one constructor. If you just added the following to class Client just above your current constructor;
public Client(){
} then you can remove the (xyz) in your super call and not have to worry about anything.
JSG

Similar Messages

  • Synaptics trackpad going crazy with Windows 10

    The trackpad on my Hp Envy M7 Model-G6U51UA#ABA trackpad has been going crazy with windows 10. Sometimes (most of the time) the thing does not respond at all (clicks or fingermovement) when it does occasionaly it will zoom in/out with only one finger (NEVER did this with windows 8.1) I am DESPERATE FOR HELP!! I have tried uninstalling the driver and reinstalling it (driver from hp's website)  

    Thank you for your help on this!
    Yes, I tried 1440x900 with no other settings.  That's actually how I have it now.  It allows me to go up to 1152x768, but that's it.  ;-) 
    To the previous question on 1400x1050.. Yes I tried that also.  It was in the modelines from the hdw config that I had, but since my monitor will only support up to x900, it wouldn't work either.
    My existing 'abbreviated' conf settings are below, I've download the nvidia driver (pacman -S nvidia) and tried changing the driver below from nv to nvidia, but X complained and wouldn't start, so I'm back to the 'nv' driver below:
    Section "Monitor"
        Identifier "Monitor0"
            Option "DPMS" "true"
    #        Option "DPMS"
    #    HorizSync    28-72
    #    VertRefresh    43-60
        HorizSync    28.0 - 96.0 # Warning: This may fry old Monitors
        VertRefresh  50.0 - 75.0 # Very conservative. May flicker.
    EndSection
    Section "Device"
        Identifier  "Card0"
        Driver      "nv"
        VendorName  "All"
        BoardName   "All"
    EndSection
    Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultColorDepth 24
        SubSection "Display"
            Depth        1
            Modes        "1440x900"
    .................section ommited for message brevity sake..............   
        SubSection "Display"
            Depth        24
            Modes        "1440x900"
        EndSubSection
    EndSection

  • HT4623 hi i have an iphone 4s and has not been a year yet no water damage but there is a white cloudy screen around the edges and will start going crazy with different colors and all someone please gel what is wrong with it?

    hi
    i have an iphone 4s and has not been a year yet no water damage but there is a white cloudy screen around the edges and will start going crazy with different colors and all someone please gel what is wrong with it?

    I switched the usb port and did the whole recovery holding of the buttons ect... And it worked, the computer detected the phone and i was able to click restore. However, the computer says preparing iphone for restore and it is still doing the restarting thing where the apple fades away and then comes back like it is restarting. If i can somehow get past this i will be able to go back to factory settings and resolve my problem, but this is where i am stuck.

  • Help! I'm going crazy with the Export function!

    I've spent all day googling and trying different methods but I keep having issue with the Export to Movie function in CS3. I have a short 2-minute long movie made of several video clips, cross dissolve transitions, and an mp3 for background music. Everytime I try to export it through File/Export/Movie, it fails with the "Error compiling video...". This happens to many formats available (Microsoft AVI, Microsoft DV AVI, Quicktime, etc.). The weird thing is that I was able to export it through Adobe Media Encoder. I tried several file formats this way sucessfully with the same project. I uninstalled and reinstalled a few times and it's doing the same thing. I'd really appreciate any advice to help me solve this problem.

    Please provide
    these details to help us help you.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • Safari keeps redirecting almost every page to other pages ... going crazy with this any help ??

    Since 6 months or more ... Safari keeps having a life off its own ...
    I constantly have to go back 1 or 2 pages to get where I want ...
    it not even after a google search or so ...
    I go to a site and hop ... "mackleener" shows up "groupon" is there all the time ...
    or the page turns grey saying ... no page found ... with a long link starting with groupiesearch blabla ..
    it starting to be sooooo enoying that I want to throw out Safari ... but Im so used to this browser now that I actiually dont want to change..
    All my pages info stuff is build in Safari for years so I dont want to restart with Firefox from zero ...
    any help on this matter would be a timesaver ...
    Thank YOU
    Franky

    Ok...  use Open DNS to avoid redirects.
    Use OpenDNS for better speed and more security and it's free.
    Open System Preferences / Preferences then select the Network tab. Click the Advanced tab then click the DNS tab.
    Enter these numbers exactly as you see them here.
    Click +
    208.67.222.222
    Click +
    208.67.220.220
    Then click OK.
    More about OpenDNS here.
    Topic : Manually provided DNS server addresses are higher priority than DHCP's

  • Please help i'm going crazy  with what just happened

    I was playing a game, then i wanted to quit, i pushed the menu button but my ipod touch just got in blank i got scared and started pushing all the buttons, now the screen is only in white, it's been like that for about an hour.. what should i do?

    Try a reset:
    Hold the home and power buttons at the same time until the Apple boot logo appears. No data will be lost.

  • When I click on a "reply to" on a web site like Craigslist to send an email from me, my Firefox system goes crazy with about 120 Untitled pages - Help!!!

    I click on reply to on Craigslist

    Check the Mailto setting in Tools > Options > Applications and make sure that it is not set to Firefox.
    See also [[Firefox keeps opening many tabs or windows]]

  • Wifi going crazy with activity since icloud

    Since accepting iCloud my wifi has been going nuts,it doesn't stop& it is interfering with things I may want to do like play a game,it slows everything to the point that I have to refresh.Can anyone help?

    You're using type 200 (adVarChar), and you've limited
    yourself to three
    characters. If "seats" has more than three characters, you
    will get this
    error. You may get this error because you used NVARCHAR,
    which is Unicode.
    That's type 202 (adVarWChar).
    "trinitisys" <[email protected]> wrote in
    message
    news:e8ea21$aia$[email protected]..
    > Sup all...
    >
    > Since I upgraded to dw 8.0.2 weird things have been
    happening with the
    > recordsets that worked perfectly fine in 8.0.1. I
    created a page with
    > some new simple query parameter driven recordsets on it
    and now all of a
    > sudden I keep getting the following error.
    >
    > ADODB.Command error '800a0d5d'
    >
    > Application uses a value of the wrong type for the
    current operation.
    >
    > /showcase/vehicle_edit.asp, line 179
    >
    > When I test the recordsets they work fine. When I try
    them live they
    > don't. I need someone's help because I have lost a lot
    of time trying to
    > find out what's wrong. The database columns of both
    recordsets is
    > nvarchar(3). I am stumped and severely frustrated. Here
    is the recordset
    > code from the page.
    >
    > <%
    > var rsSeats__MMColParam = "NOT";
    > if (String(rsMySpecificRide("Seats")) != "undefined"
    > String(rsMySpecificRide("Seats")) != "") {
    > rsSeats__MMColParam = String(rsMySpecificRide("Seats"));
    > }
    >
    > %>
    > <%
    > var rsSeats_cmd = Server.CreateObject ("ADODB.Command");
    > rsSeats_cmd.ActiveConnection = MM_connShowcase_STRING;
    > rsSeats_cmd.CommandText = "SELECT VendorCode, VendorName
    FROM
    > dbo.ShowcaseVendors WHERE VendorCode = ?";
    > rsSeats_cmd.Prepared = true;
    > - LINE 179 ->
    >
    rsSeats_cmd.Parameters.Append(rsSeats_cmd.CreateParameter("param1",
    200,
    > 1, 3, rsSeats__MMColParam)); // adVarChar
    >
    > var rsSeats = rsSeats_cmd.Execute();
    > var rsSeats_numRows = 0;
    > %>
    >
    > Regards,
    >
    > Darin
    >

  • Need help, going crazy trying to make decision

    If anyone could help with the basics I would be most grateful. Looking for 40"-42" LCD HDTV 1080p.
    First I have noticed the refresh rate of 60Hz and 120Hz on a lot of TV's but I ran across one today that read 600Hz.  Is that a misprint or something that is specific to a certain type of TV? 
    Also, how important is a brand name?  Lets say Sanyo, Visio, Samsung, Sharp ect.  I have read and heard that Sony and Panasonic are good brands.
    Anyway, any help or advice would be greatly appreciated.  I hate spending this much money on something and not know any more about it that I do. 
    Thanks,
    Torch

    Torch wrote:
    If anyone could help with the basics I would be most grateful. Looking for 40"-42" LCD HDTV 1080p.
    First I have noticed the refresh rate of 60Hz and 120Hz on a lot of TV's but I ran across one today that read 600Hz.  Is that a misprint or something that is specific to a certain type of TV? 
    If you saw a LCD with a 600hz refresh rate it was a misprint. Did you see this one LG 55"?Only TV's with a 600hz refresh rates are Plasmas. Common refresh rates for LCD's are 60, 120 and 240. What you get is personal preference but the higher refresh is mostly marketing gimmicks.
    Also, how important is a brand name?  Lets say Sanyo, Visio, Samsung, Sharp ect.  I have read and heard that Sony and Panasonic are good brands.
    Brand names are very important if you want a quality display and one that will last. Your best manufactures for both LCD and Plasmas are Panasonic, LG, Samsung and Sharp. Sony is NOT a good brand. Their quality has seriously went into the toilet in the past several years.
    Anyway, any help or advice would be greatly appreciated.  I hate spending this much money on something and not know any more about it that I do. 
    Thanks,
    Torch
    Responses in red

  • Can not install shockwave at all! Please help going nuts with this.

    This whole thing started when I went to shockwave.com and wanted to play some of their games. It saidI needed to install shockwave. I uninstalled an old version as recommended then installed a new one. Well I should say tried to! I get a screen that asks permission to d/l I told it ok twice then I get nothing ..... nothing happens it looks like it's going to d/l but nothing. I think well maybe something is there and go look to uninstall again but there is nothing there for shockwave. I have flashplayer working fine but can't d/l shockwave.. weird... can someone plz help? I don't have $39 to tech help on here. Thank you for your time!

    What operating system; what browser?
    Try downloading the installer from http://www.adobe.com/shockwave/download/alternates/#sp

  • I'm going crazy with the liquify mask. I can not turn it off or errase it

    Whenever I want to use the Liquify tool I can not transform my image. The mask tool is all over the image and I can not errase it. If I click no "None" on the mask tab, nothing happens. I can modify the image though but, the part of the image that I work on desapears from my file (appears as a transparent section). I have to shut down my computer in order to make it work justo once! Please help me!!

    Need a lot more details.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge, machine specs, such as total installed RAM, scratch file HDs, video card specs, including total VRAM installed, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you (not necessarily this poster).
    A screen shot could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • I'm going crazy with tryin to email a movie to my kids.....

    I made a movie on my digital camera and wanted to get in on my computer to email to my kids.. Turns out to be 200mg.. I try to use Movie Maker, as that is the only program I know that can email a movie this size or download it onto a CD. BUT Movie maker does not accept .mov format. So I go to Quicktime and see that I need to upgrade to Pro in order for the .mov to change to .avi QT Pro crashes, and now I'm am trying to re-intall it. Does anyone know an easier way to do this or shall I just give up?? Thanks , Barbara in CT.

    Barbera,
    Rather than use Movie Maker to burn it to a CD, could you not just add the file to a CD in quicktime format, thus negatining the need to convert it?
    There are plenty of web sites that detail how to do this, but this one is the first I found which looked to be the most suitable:
    http://www.tech-recipes.com/rx/1543/xphow_to_burn_files_and_folders_to_acd
    Hope this helps. let me know if it doesn't.
    regards
    Paul

  • Z Index, layering images, need help (going crazy!)

    Need some help on layering images. As you can see, the "polaroid" has tape on it - I want that tape to overlap the menu bar.
    The menu bar is a grapic (there is a slight gradient to it) and on top of it are the actual menu graphics.  If I remove the menu graphics, the photo overlaps fine.  But if I insert the menu graphics, they lie on top of the polaroid.  Thanks in advance for any help you can provide.
    Gary
    Here is the code for the page:
    <h1>SanDiegoHomegrown.com</h1>
    <img src="images/menuBar.gif" />
    <ul id="menuBar">
       <li id="listen"><a href="songs.html">Listen</a></li>
      <li id="submit"><a href="submit.html">Submit Songs</a></li>
      <li id="seals"><a href="seals.html">Help the Seals</a></li>
      <li id="about"><a href="about.html">Our Story?</a></li>
      <li id="sponsors"><a href="sponsors.html">Sponsors</a></li>
    </ul>
    <div id="polaroid">
    <img src="images/band2_polaroid.png" width="280" height="354" />
    </div><!--polaroid-->
    Here is the CSS:
    #polaroid {
        height: 354px;
        width: 280px;
        padding-left: 50px;
        margin-top: -40px;
    #menuBar {
        height: 30px;
        width: 960px;
        padding: 0px;
        font-family: "Courier New", Courier, monospace;
        list-style-type: none;
        position: absolute;
        display: block;
        background-repeat: no-repeat;
        margin-top: -30px;
    #menuBar a {
        width: 175px;
        display: inline-block;
        color: #2F3032;
        text-align: left;
        vertical-align: 0%;
        margin: 0px;
        list-style-type: none;
        float: left;
        height: 35px;
        padding-top: 0px;
        padding-right: 0px;
        padding-bottom: 0px;
        padding-left: 10px;
        text-indent: -9999px;
    #menuBar #listen {
        background-repeat: no-repeat;
        position: absolute;
        background-image: url(images/titles/listen_bar_orig.gif);
    #menuBar #submit {
        background-image: url(images/titles/submit_bar_orig.gif);
        background-repeat: no-repeat;
        position: absolute;
        margin-left: 150px;
        width: 200px;
        z-index: 1;
    #menuBar #seals {
        background-image: url(images/titles/seals_bar_orig.gif);
        background-repeat: no-repeat;
        position: absolute;
        margin-left: 375px;
        width: 225px;
    #menuBar #about {
        background-image: url(images/titles/about_bar_orig.gif);
        background-repeat: no-repeat;
        position: absolute;
        margin-left: 625px;
    #menuBar #sponsors {
        background-image: url(images/titles/sponsor_bar_orig.gif);
        background-repeat: no-repeat;
        position: absolute;
        margin-left: 800px;

    Auggh, just figured it out.  The Polaroid needed to be relative positioning!

  • Frame rate goes crazy with editable text sprite

    This one is annoying - I have a lot of things that depend on
    a steady,
    predictable frame rate. But whenever you have the mouse
    button held down on
    an editable text sprite, the frame rate goes through the
    roof. I don't know
    what the numbers are exactly, but everything runs MUCH faster
    than it
    should. This can result in some major timing mis-syncs for
    other events
    happening on the stage. It looks like the OS is taking over
    or something
    when you're selecting text on a text sprite. Is there any
    easy way around
    this? Or should I just try and keep editable text sprites
    from being used
    on the same frame as time-sensitive code? I'm thinking I
    could maybe get
    around it by making the sprite non-editable and changing the
    text manually
    based on keypresses, but that sounds like a lot of work to
    basically
    reinvent the wheel here for something that should just work,
    you know?

    > Bad idea.
    >
    > The Tempo channel sets the Maximum frame rate, but it
    could be much less
    > and
    > throw things out of sync. Depends on what you are doing.
    >
    > You can use Timeout objects to do time-based animations
    and completely
    > forget
    > about what the frame rate is. This is a far more robust
    solution across
    > varying
    > computer systems.
    >
    > Personally I have not used an "enterframe" or
    "exitframe" in over half a
    > decade other than a single obligatory "go the frame"
    behavior.
    Well, what I do is something like:
    global timeBase
    on exitFrame
    if the ticks - timeBase > 2 then
    repeat while the ticks - timeBase > 2
    timeBase = timeBase + 2
    gameLoop()
    end repeat
    end if
    end
    So, even if the movie is lagging behind, the gameLoop()
    executes at regular
    intervals. If more than 2 ticks have passed between this
    frame and the
    previous, it will execute the gameLoop() script multiple
    times in order to
    catch up. All the important time-dependant stuff runs in
    gameLoop().
    This is not what the problem is, however. Most of my
    animations on screen
    are being shown as Film Loop sprites or in some cases
    animated GIFs, and
    these are what depend on the steady frameRate. If you click
    on an editable
    text object, the animations all suddenly speed up until you
    release the
    mouse button. I guess it's really more of an aesthetic thing
    than anything
    else, but it just looks really silly when everything suddenly
    runs
    super-fast just because you clicked on a text sprite.

  • Isa 2006 standard, going crazy with "Enforce Strict RPC compliance"

    Hello,
    I am trying to join a W2k8 R2 machine to a domain. If it is in the same network as the domain controller, no problem whatosever. If instead, there is a ISA Server (2006, Standar), issues arise.
    Even if I create a rule allowing all the traffic back and forth from the perimeter to the lan, the message still appears.
    This is the message:
    "Changing primary domain dns name "" failed. The name will remain "newdomain.org" . The specified server cannot perform the requested operation.
    The domain controller and the client are both W2k8 R2 64 bits.
    Very important:
    I can attach a 2008 Windows server as long as it is 32bits, but not a R2 (x64).
    Thanks in advance!
    Luis Olías Técnico/Admon Sistemas . Sevilla (España - Spain)

    Thanks a lot Joyce.
    It has been a while since I wrote this post and I solved the issue by following some directions from this blog:
    http://blogs.technet.com/b/instan/ar...ot-failed.aspx
    which says:
    This is a bogus error message [...] it's caused by the domain join code ending up in a function which it doesn't need to run anyway during a domain join operation using the GUI.
    What's failing is the attempt to change the Primary DNS suffix of the machine after the domain join has succeeded - but the Primary DNS suffix is already correct at that point which is why this can be ignored.
    The domain join itself is not affected at all and will have succeeded if you're seeing this specific error message with the empty quotation marks as that code is only run after a successful domain join.
    As frustrating as it is, this is unfortunately one of those cosmetic issues which aren't likely to be fixed until the next OS version - primarily because it has zero impact and no effect beyond the ugly error message.
    A workaround that removes the error message is to populate the Primary DNS suffix of the machine before attempting the domain join.
    Luis Olías Técnico/Admon Sistemas . Sevilla (España - Spain)

Maybe you are looking for

  • REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found

    Hi guys, I am getting error 'REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found ' when run the report and i m also use formula column in my report. can any body help me why it's coming. following code is used in formula column plz check

  • IPod touch will not turn on although fully charged. Only had it three days.

    My iPod touch has been working fine until today. I updated the software about four hours ago fine but after a while it turned itself off and will not turn back on. Have charged it for an hour and still won't turn on and tried to connect to my PC via

  • OS 9 & OS X not playing well tofether

    Hi! I'm having a problem with OS X and OS 9.2.2 cohabitating on my computer. Here's what I've done so far: I have 5 drives on my computer: 1) Dedicated to OS 9.2.2; 2) Backup for OS 9.2.2 (cannot boot from this drive; it has replaced the Zip drive on

  • Issue with Date Conversion when loading XML File into Oracle 10g Database

    Hello all, I have the interface shown in the screenshot below. In it, amongst other actions, I'm mapping an XML file element representing a date to an Oracle table column defined as DATE. The source and target columns are highlighted in the screensho

  • When I close my safari app my iphone 5 screan has a glitch

    When I run a app or my safari for short or even extended periods of time when I go to close it my screen glitches almost like I'm taking a screen shot. This occurs right after app closes  but no picture is being saved worried that os might crash has