Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Learn Java in Hindi 23:more on Constructors

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,080
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Link to this comment:

Share to:

Uploader Comments (technosesh)

  • 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.

see all

All Comments (17)

Sign In or Sign Up now to post a comment!
  • @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.

  • can u plz explain that variable :

    double vol=obj.volume();

  • @technosesh

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

  • @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.

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