Learn Java in Hindi 23:more on Constructors
Uploader Comments (technosesh)
All Comments (17)
-
@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();
-
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.
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 3 weeks ago
@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
technosesh 2 weeks ago
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 2 months ago
@shabbir232 I am terribly sorry for the previous reply, No we can not override a constructor. However we can overload it.
technosesh 2 weeks ago
constructor class k name par hi kyu hote hain???
jazzbazzful 2 months ago
@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.
technosesh 2 months ago