Corejava - OOPs -Inheritance Part - 3

  Рет қаралды 80,572

Durga Software Solutions

Durga Software Solutions

Күн бұрын

Пікірлер: 61
@bhavanathakur3287
@bhavanathakur3287 7 жыл бұрын
Ratan Sir, You have made Java language so simple that now I can answer all concepts in my subconscious also.
@rupakkumar4774
@rupakkumar4774 7 жыл бұрын
Hat's off to the Genius Ratan Sir.Your way of teaching with programming examples is excellent Sir.Plz provide private videos.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 7 жыл бұрын
Hi Rupak. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627
@abbasmastan3
@abbasmastan3 7 жыл бұрын
you made java simple ...great job ratan sir
@sudhakarams149
@sudhakarams149 7 жыл бұрын
sir thank u so much, really java means durga durga means java
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 7 жыл бұрын
Hi Sudhakaram. Thank you very much for your feedback
@harshithmc1581
@harshithmc1581 5 жыл бұрын
ratan sir, super teaching.... u are a real hero
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Harshit. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
@muhsinahmed8022
@muhsinahmed8022 8 жыл бұрын
Zbaradast (excellent) , your tutorials are very helpful for us
@kalyanbabu5784
@kalyanbabu5784 6 жыл бұрын
thanku so much sir..the way of teaching is superbbb..
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Kalyan. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
@cpavan6040
@cpavan6040 Жыл бұрын
I loved ur explanation sir
@apsarsulthana3457
@apsarsulthana3457 7 жыл бұрын
excellent videos sir very helpfull . Thank u Ratan sir
@sayendharmamidi7208
@sayendharmamidi7208 7 жыл бұрын
Hi Ratan , the way u teach was excellent !
@ekant1992
@ekant1992 8 жыл бұрын
Really amazing step by step explanation sir,But i have 1 request , can you add the name of the sub topics taught in the video in the name of the video.Thank you
@vikaskamble2088
@vikaskamble2088 7 жыл бұрын
Awesome Video, lot of small concept clear. Thank you so much sir.......
@prasadk5931
@prasadk5931 Жыл бұрын
supper excellent sir meeru
@haricharan9280
@haricharan9280 7 жыл бұрын
Ratan sir, your my god in java thank you sir.
@SauravKumar-hr9zk
@SauravKumar-hr9zk 7 жыл бұрын
Hello Ratan sir, I want to get your entire videos on core java please let me know how can i get that i am ready to pay fee as well. Your teaching is really awesome. Thanks a lot sir.
@mharoonzaib6003
@mharoonzaib6003 8 жыл бұрын
can u plz provide me link to all corejava tutorials in a single folder... so that i may not have problem finding them. from start till end. btw good teaching.
@SanjaySony303
@SanjaySony303 9 жыл бұрын
marvellous concept thank you Ratan Sir
@vikrampatil5002
@vikrampatil5002 6 жыл бұрын
Hey Ratan, In the below code, could you tell me why the first statement i.e. Parent1 () { System.out.println("parent 0 args constructor"); } from the parent class constructor is not printing. ############## package Inheritance; class Parent1 { Parent1 () { System.out.println("parent 0 args constructor"); } Parent1 (int g, int h) { System.out.println("parent 2 args constructor"); } } class Child extends Parent1 { Child () { this(10); System.out.println("child 0 args constructor"); } Child (int a) { this(10,20); System.out.println("child 1 args constructor"); } Child (int v, int b) { super (12,91); System.out.println("child 2 args constructor"); } public static void main(String[] args) { new Child (); } } Thanks, and regards vikram Patil (vikrampatil2302@gmail.com)
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Vikram. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@anjalisingam6652
@anjalisingam6652 4 жыл бұрын
here output will be 1. parent 2 args 2. child 2 args 3.child 1 args 4.child 0 args but the problem is we want parent 0 args also then u hv to use "this"keyword in parent(int a) {this(); System.out.println("parent 1 args");} here the output changes 1.parent 0 args 2.parent 1 args 3.child 2 args 4.child 1 args 5.child 0 args
@anjalisingam6652
@anjalisingam6652 4 жыл бұрын
@vikram patil I hope u got me if I get mistake please correct me...
@vnmusic5216
@vnmusic5216 8 жыл бұрын
awesome learning videos sir !!!!
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 8 жыл бұрын
thank u vishal
@sureshajmera9718
@sureshajmera9718 7 жыл бұрын
exception handling video -,2,3,4 are not available can u say where it is available
@hemlatakalokhe7014
@hemlatakalokhe7014 8 жыл бұрын
Sir in example 6 u told that in default constructor compiler is generating super() but in constructor concept only u told that default constructor is 0 arg constructor with empty implementation. Then how could compiler generate super() inside default constructor
@AbhishekSingh-cm1pf
@AbhishekSingh-cm1pf 7 жыл бұрын
How to use the parent class static variable in child class?
@sunilsrivastava6930
@sunilsrivastava6930 6 жыл бұрын
ye jisne dislike kara hai.. aakhir aise log aate kaha se hain
@prasannadevi402
@prasannadevi402 8 жыл бұрын
in ex 5 wat is the use of super,compiler only generating code by default and executing 0-arg constructor,by default only it is executing ,then why super (). sir
@swatijain4004
@swatijain4004 7 жыл бұрын
you has said that we cannot call a method within a method its not supported in java then how come we ae doing it. Please explain
@tangudurohit3381
@tangudurohit3381 4 жыл бұрын
We can call a method in a method, but, we can’t create a method in a method
@IgiveyouNONE
@IgiveyouNONE 8 жыл бұрын
I really don't see the point here. The super keyword is for calling super constructors from base clase. But why is the used of it if the compiler generates by default an implicit super() on first line inside a constructor? I'm confused, help.
@SPORTGEAR3000KMPH
@SPORTGEAR3000KMPH 4 жыл бұрын
Can we inherit constructor why we calling parent class constructor
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@SPORTGEAR3000KMPH
@SPORTGEAR3000KMPH 4 жыл бұрын
@@DurgaSoftwareSolutions do you clarify my doubt free or asked to join in your institution
@nikwade28
@nikwade28 6 жыл бұрын
Ratan, in videos regarding variable concept you gave some assignments right? But after those videos i am not finding any assignment from you?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Indi_Anime. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@Kavy-fw4rx
@Kavy-fw4rx 6 жыл бұрын
Very nice explanation
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Kabita. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
@vipinbarman8319
@vipinbarman8319 8 жыл бұрын
grt ratan.....🙌🙌🙌🙌
@ashwiniwaghmode2513
@ashwiniwaghmode2513 7 жыл бұрын
Very useful this video
@lalitkumar2855
@lalitkumar2855 7 жыл бұрын
Hi Sir, I am trying to run below program: public class Parent { int a =100; int b = 200; class child { int x = 500; int y = 500; void add(int i, int j) { System.out.println(a+b); System.out.println(x+y); System.out.println(i+j); } } public static void main(String[] args) { new child().add(1000, 2000); } } Error received: No enclosing instance of type Parent is accessible. Must qualify the allocation with an enclosing instance of type Parent (e.g. x.new A() where x is an instance of Parent). kindly help me understand this and resolve this error.
@chintupagidi
@chintupagidi 7 жыл бұрын
Hello lalit, you haven't closed the flower braces of public class parent.
@banisettiatchuta4335
@banisettiatchuta4335 6 жыл бұрын
Good tutorial...
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Banisetti. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
@saswatjethi3402
@saswatjethi3402 8 жыл бұрын
sir as you said if there is no super keyword or this keyword inside a constructor then the compiler will auto generated the super() keyword of 0-args constructor. but in the below example i declare a this keyword in child class but it is call the parent class 0-args constructor. so if compiler generate the super keyword then it might be compileing error as super(), and this() key word cant exicute inside a single constructor. class Parent{ Parent(){ System.out.println("Parent class 0-args const"); } Parent(int a){ System.out.println("Parent class 1-args const"); } } class Child extends Parent{ Child(){ this(22); System.out.println("child class 0-args const"); } Child(int b){ System.out.println("child class 1-args const"); } public static void main(String args[]){ new Child(); } } /*O/P: C:\Users\soumit\Desktop\java>java Child Parent class 0-args const child class 1-args const child class 0-args const */
@MinhazTaher
@MinhazTaher 8 жыл бұрын
+saswat jethi controo first gose to "child class 0-args const".. here it dit not print anything because u called "child class 1-args const"... now controll is in "child class 1-args const". now think ..in "child class 1-args const" in there any this keyword or super keyword? = NO; so controll will called "Parent class 0-args const".. after that it will execute child class 1-args const. than child class 0-args const... hope u get it now
@thennarasuannamalai3783
@thennarasuannamalai3783 8 жыл бұрын
but super() is only implicitly created...... how will this() be created implicitly? kindly give example if u know....
@savnable
@savnable 7 жыл бұрын
@Saswat: when u create Child() object in main() method, control goes to 0 arg constructor, by default it will call the parent class 0 arg constructor(compiler) and prints "Parent class 0-args const" line and then compiler look at the first statement i.e this(22), so calls 1 arg cons Child(int b) and prints "child class 1-args const" line, now control goes back to Child() and prints "child class 0-args const". So no compilation error. When super keyword and this keyword are used in same constructor, compiler generates an error. In your example, call super() and this(22) in Child() {}, compiler generates an error.You can verify below scenario as well:Have a Parent class with 1 arg cons and a Child class with 0 arg cons and create an object Child();. Now compile the app.Compiler gives you an error because when it is calling 0 arg cons of Child, by default it is looking for constructor of Parent class(In this case 1 arg cons bcz priority goes to user defined cons first) and you are not passing a value to user defined cons of Parent class.
@vinitanayama5936
@vinitanayama5936 7 жыл бұрын
Thanks a lot Sir.
@badushaik5541
@badushaik5541 7 жыл бұрын
thnqqqsss a lotttttt
@sivaganta1847
@sivaganta1847 7 жыл бұрын
sir i want exception handling remaining videos :(
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 7 жыл бұрын
Hi Siva. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627
@narendrababu898
@narendrababu898 7 жыл бұрын
very use full me
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 7 жыл бұрын
Hi Narendra. Thank you very much for your feedback
@narendrababu898
@narendrababu898 7 жыл бұрын
well come sir
@Mona001-01g
@Mona001-01g 7 жыл бұрын
This code is not working class Parent { Parent(int i) { System.out.println("Parent"); } } class Child extends Parent { Child() { super(10); System.out.println("call to 0-arg child constructor"); } Child(int i) { System.out.println("call to 1-arg child constructor"); } public static void main(String[] args) { new Child(); } }
Corejava - OOPs -Inheritance Part - 4
18:52
Durga Software Solutions
Рет қаралды 52 М.
Corejava - OOPs -Polymorphism Part - 1
35:11
Durga Software Solutions
Рет қаралды 145 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Каха и дочка
00:28
К-Media
Рет қаралды 3,1 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 685 М.
Corejava - OOPs -Inheritance Part - 1
32:50
Durga Software Solutions
Рет қаралды 155 М.
Corejava - Basics-  Instance block in java
27:36
Durga Software Solutions
Рет қаралды 76 М.
Corejava - OOPs -Inheritance Part - 2
36:18
Durga Software Solutions
Рет қаралды 94 М.
Corejava -OOPs-Polymorphism Part - 3
37:17
Durga Software Solutions
Рет қаралды 76 М.
Corejava - Basics- Java coding conventions
49:15
Durga Software Solutions
Рет қаралды 66 М.
Esad, Rusya'ya Kaçtı: Başkanlık Sarayında Sessizlik Hakim
15:40
Habertürk TV
Рет қаралды 267 М.