Added: 5 months ago
From: technosesh
Views: 1,143
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (17)

Sign In or Sign Up now to post a comment!
  • Sir,i am confused to where to put (),{},[].I always forgot to put this and get errors.Any way to remember where to put this.

  • @XxxTheProGamerzxxX hey maybe I answered this question before or maybe its a deja vu .. here is the reply: [ ] are put mostly concerning arrays. eg: int [] a = new int[3], creates an array of size 3. When you want to put stuff in a method, class, constructor etc you put them between { } .in a method you pass arguments between the ( ). if there are none then the ( ) is empty else it is filled with arguments such as add (1,3). Sorry for the late reply

  • Sir,

    Please ans my question.

    My question is CAN WE OVERRIDE CONSTRUCTOR

    Please reply soon...

    last but not the least...Keep doing good job

    Keep doing good job

  • @shabbir232 I am terribly sorry for the previous reply, No we can not override a constructor. However we can overload it.

  • constructor class k name par hi kyu hote hain???

  • @jazzbazzful agar nahi hua to woh ek method ban jata hain ... constructor woh m ethod hain jo hameesha class ka naame use karta hain ... usr jab bhi ek alag class mein us class ka object banta hain to uska constructor invoke ho jata hain.

  • can u plz explain that variable :

    double vol=obj.volume();

  • @coolsmack1000 I took a variable of type double and made it equal to the result that you will get after you execute the method volume(), which returns a double value, accessed using the object called obj.

  • sir i m in class xi n i m new 2 java...

    i hv been given my project on bluej n i face many difficulties 2 solve them...

    thnx 2 u as some of ur tutorials helped me 2 understand the basics but still those r not adequete...

    What 2 do????

  • @kasaksharma1000 I just downloaded and installed Blue J and it seems to be pretty easy to understand because I've been doing Java for more than a year now... but for an absolute beginner it seems ridiculous to be given a BlueJ project because you must understand UML to do it. I have no Idea how to help you because, I can't post tutorials on BlueJ ... let me know what you want from me.

  • @technosesh

    sir can u plz make me understand hw 2 use BufferedReader n what is its significance???...

  • Comment removed

  • @kasaksharma1000 hey thanks man, let me know, where you are stuck and maybe we can figure out a good solution. :)

  • @technosesh lol :D yeah facebook kill time, but its d good medium to share too.!!

    btw i've got same pgm , but vit addtion of method overloading, no doubt i understood it, thnx to old tutorials.

    and they used a method called

    box(double len)

    {

    width=height=depth=len;

    }

    which i find, this len simply has no work to do in this pgm..!!

  • @MrTuhinBagh len has the most important job to do here, it is assigning/ initiating values to width, height and depth of the box (logically if you consider that the box is of cube shape).

  • @technosesh oh oh ..!!! now i got the whole pgm, was stuck there.!!

    thnk u very much mate....!!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more