Java Crash course | 09 | Java Polymorphism Explained | Tamil | Java for Automation

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 79

  • @thinakaranrajendran2666
    @thinakaranrajendran2666 5 лет назад +3

    Hi Bro, Question at 14:51... I think, overload is also possible in IS-A relationship. Please correct me if I am wrong...

    • @LearnAutomationOnline
      @LearnAutomationOnline  5 лет назад +7

      Yes we can do overloading with different classes as well. But that's a kind of very unlikely process. According to Oracle docs, If two methods of a class (whether both declared in the same class, or both inherited by a class, or one declared and one inherited) have the same name but signatures that are not override-equivalent, then the method name is said to be overloaded. It doesn't need any relationship in between them. Thanks for pointing out. Will pin this comment. 😊

  • @naveenk9783
    @naveenk9783 2 года назад

    Nothing personal.. strictly bussines💥💥💥 Godfather vibes

  • @ganeshkumar-pz1vl
    @ganeshkumar-pz1vl 5 лет назад

    Dear Brother, unga video and neenga thara examples super.

  • @gowthamshanthi3368
    @gowthamshanthi3368 2 года назад

    Super Explanation brother.Nalla Puriyuthu Thanks

  • @nathamuni9435
    @nathamuni9435 3 года назад +3

    Bro
    I learnt java already aana marandu pochu
    Enakku selenium naa enna nu kuuda theriyaadu
    Chumma random aa than onn video pathen
    And veera lvl aa iruku 😊
    Adum onga xmpl lam chance ee illa
    Aana playlist ku java for selenium aa mathina nalla reach kadaikum
    Keep it up..!
    Super 😗 naa
    By the by Naa CSE 2nd er..
    Class laa mass kataporen java laa😝😜

    • @LearnAutomationOnline
      @LearnAutomationOnline  3 года назад +6

      Glad u found it useful. Rock your class also, teach your class. In that way you can rock even more!

    • @nathamuni9435
      @nathamuni9435 3 года назад +2

      @@LearnAutomationOnline 🔥Nandrigal palaaa!

  • @meenavinothviyanmivan
    @meenavinothviyanmivan Год назад

    thoroughly explained

  • @akonrafiq1867
    @akonrafiq1867 2 года назад

    good teaching bro....thank you for your Teaching

  • @vignesh43345
    @vignesh43345 3 года назад

    bro vera levell teach......to do more videos updates also

  • @bhuvanagk6016
    @bhuvanagk6016 2 года назад

    Terrific !! Worth listening.

  • @Anukarthik17
    @Anukarthik17 3 года назад

    super anna. ur examples are very understandable anna. Rocking bro.

  • @kannankasthuri4655
    @kannankasthuri4655 5 лет назад +1

    bro examples are very good....Good work bro ..keep it up ...

  • @bhuvaneshbhuvi9509
    @bhuvaneshbhuvi9509 2 года назад

    Well teaching sir

  • @rajarathinam1965
    @rajarathinam1965 2 года назад +1

    Bro parameters la error kamikudhu bro solution please

  • @rajaganapathysarveswaran3738
    @rajaganapathysarveswaran3738 2 года назад

    please one more clarify to throw in overloading and overriding difference

  • @vishwakannan-p2k
    @vishwakannan-p2k Год назад

    Anna... kindly explain me, what is an exception??? which you mentioned in the Aspect tabular column

  • @karthikv8875
    @karthikv8875 2 года назад

    I have one doubt why we add second parameter for all the methods as styleoftalking, what is the need for it,

  • @prabhuk5902
    @prabhuk5902 2 года назад

    Run time la than therium nu epdi solringa already new implementation child class la irukuna athuthana varum ??? Confused ah iruku bro pls explain

  • @prabhuk5902
    @prabhuk5902 2 года назад

    Return type over Loading la change agalama

  • @prabakarm5025
    @prabakarm5025 4 года назад

    Mass thala

  • @mohanraj-ps3bv
    @mohanraj-ps3bv 4 года назад

    Semma...ji

  • @selvakumarkumar1543
    @selvakumarkumar1543 3 месяца назад

    Awsome

  • @saibaba369
    @saibaba369 3 года назад

    Thanks lot anna 👍

  • @arthis8136
    @arthis8136 3 года назад

    Sir...Please send me a link for java concepts

  • @sdesigamani
    @sdesigamani Год назад

    I have completed studying basic concepts in JAVA, can you please share RUclips video for maven, Selenium & testng

    • @LearnAutomationOnline
      @LearnAutomationOnline  Год назад

      Check the Playlist tab of the channel. You can see all the videos clubbed under different Playlist

  • @MohanRaj-ml4db
    @MohanRaj-ml4db 4 года назад

    While using overloading concept need to create all the classes for dummy then only we can do overload?

  • @YouTubeFunViewer
    @YouTubeFunViewer 4 года назад +1

    Bro can you clarify Overriding concepts for Static Methods?
    1) Can Static Methods be Overridden?
    2) Can we have 2 Static methods with same signature in both Parent and Child class?
    3) If we have 2 Static methods with same signature in both Parent & Child Class, what will be the output when we call those methods by creating object (I understand Objects shouldn't be created for Static methods, but still compile time it only gives warning and allows to run code)
    Let's say we have static test method in both Parent and Child Class
    Parent obj1 = new Parent() ;
    Parent obj2 = new Child();
    Child obj3 = new Child();
    obj1.test;
    obj2.test;
    obj3.test; (this is allowing to override Static method of Parent)

    • @YouTubeFunViewer
      @YouTubeFunViewer 4 года назад

      did you get a chance to look into this bro?

    • @gowthamshanthi3368
      @gowthamshanthi3368 2 года назад

      Static method cannot be overridden..in the compile time itself error will be thrown

    • @tamilvanan1649
      @tamilvanan1649 Год назад +1

      use static way it's possible to override in child class don't create instance or object directly call the method in static way...

  • @saibaba369
    @saibaba369 3 года назад

    Super Anna

  • @appasamykuppusamy8037
    @appasamykuppusamy8037 2 года назад

    Bro override la child class ke object creat panalame... why we use parent class to create object... what is the different between the above two

    • @meenavinothviyanmivan
      @meenavinothviyanmivan Год назад

      panlam but we have already created method in the parent class so we are making use of the same methods for the child also. multiple times child pandrathukum parent kita irunthu vangikrathum difference iruku ilaya. thats what implement here

  • @nantha7128
    @nantha7128 Год назад

    ethuku bro overload dataType Parents ku thaniya class create pandrom...apdi pannallana error varruthu ... arul bro illaa yaru therinnjaalum pllzz ans me

    • @meenavinothviyanmivan
      @meenavinothviyanmivan Год назад +1

      konjam question ah clear ah solunga and neenga ena example type paningalo paste it here

    • @nantha7128
      @nantha7128 Год назад

      @@meenavinothviyanmivan actually now cleared sis. . Actually antha sec la na avar solratha olunga ketkama vituten

    • @meenavinothviyanmivan
      @meenavinothviyanmivan Год назад

      @@nantha7128 no issues

    • @nantha7128
      @nantha7128 Год назад +1

      @@meenavinothviyanmivan parameterize la class also use pannalamnu sonnatha na gavanikala. . So en frd ku video share pannen. Avan clear pannan. .

  • @arthis8136
    @arthis8136 3 года назад

    Gud noon Sir...I need a Java Concepts video alone can u send a link.

  • @maheswarankasinathaboopath3638
    @maheswarankasinathaboopath3638 3 года назад

    Can we able to create object for parameters?

  • @abdul2001
    @abdul2001 4 года назад

    Bro...method la parameter datatypes like int,float instead of can we use different classes?

    • @LearnAutomationOnline
      @LearnAutomationOnline  4 года назад

      Built in classes or user defined ones?

    • @abdul2001
      @abdul2001 4 года назад +1

      @@LearnAutomationOnline user defined bro

    • @LearnAutomationOnline
      @LearnAutomationOnline  4 года назад

      You can do. Like a method is getting String name as parameter, you can use, Customer customer, Student student. Can be sent. The type is that class here

  • @praveenarjunan885
    @praveenarjunan885 2 года назад

    Hello bro iam going to shift my profession. Iam a mech engg.
    I can understand the overloading concept, but where we will apply or use this

    • @-DHARMESHE
      @-DHARMESHE 2 года назад +1

      neraya method name use panna ungalala remember panna mudiyathu thats why

  • @browselover5250
    @browselover5250 4 года назад

    Hi Bro, can Static Methods be Overriden in Child Class ? I think this point needs to be added in the notes ...

    • @-DHARMESHE
      @-DHARMESHE 2 года назад

      no static method cant be overriden because ,only instance method can be overriden because static method cant hold instance variable or method

  • @vaishnavisrinivasan9085
    @vaishnavisrinivasan9085 2 года назад

    Sir package nan ena ??

    • @meenavinothviyanmivan
      @meenavinothviyanmivan Год назад +1

      inside a package only we create multiple classes. for example take a school(say it as package) in that school many students will be studying but not in the same class correct so we are having classes inside the school(package).

  • @gowthamshanthi3368
    @gowthamshanthi3368 2 года назад +1

    Hi Brother,
    Also Another point is - Static method cannot be overridden.
    Thanks

    • @tamilvanan1649
      @tamilvanan1649 Год назад

      your point is wrong static method also able to override. you can use in static way...

    • @tamilvanan1649
      @tamilvanan1649 Год назад

      in child class don't create instance or object directly call the method in static way...

  • @LifeLessionsAcademy
    @LifeLessionsAcademy 3 года назад

    unmaiya irunthalum nanga sothula pangukku varamatom, summa sollunga

  • @mayayadhu
    @mayayadhu 2 года назад

    👍👏👌

    • @mayayadhu
      @mayayadhu 2 года назад

      Sir i need projects to update in resume and also need practise so help me sir because i was in bpo sector but learned and finished course java with selenium

    • @LearnAutomationOnline
      @LearnAutomationOnline  2 года назад

      You can take up the demo websites I used in the videos like orange hrm or similar sites and automate them. Add it to your resume.

  • @sundharcks9450
    @sundharcks9450 4 года назад

    @Learn Automation Online... can you please why,where and when we using polymorphism please explain...

    • @LearnAutomationOnline
      @LearnAutomationOnline  4 года назад +1

      Its already there in the video, anyways here is one. Assume that you are building a merging application. If u give two pdf files.it will merge them, if u give two audio or video files it will.merge them. U don't feel like using two different method names like mergepdf and mergeaudio or merge video. In that case polymorphism comes in handy. If the input type is pdf perform the one which is receiving pdf file as a parameter and if it's an audio file call the method which is using audio type as paramater. It's all about the design requirement for the application u build. Nothing strict or constant it should be like this. If u need something like this, u can make use of this, that's the point in all the programming languages

    • @sundharcks9450
      @sundharcks9450 4 года назад +1

      @@LearnAutomationOnline Thank you soo much sir, Now only i understand and this explanation will really helpful for my interview

  • @vigneshs8183
    @vigneshs8183 4 года назад

    One question?... runtime polymorphism can achieved data member..? Please explain this answer

  • @NOone-fk4qy
    @NOone-fk4qy 2 года назад

    Brother I have a doubt in this video - overriding example while giving parameters to method, here we declared class as parameters what does styleOfTalking parameter represent??
    I tried only using created class name but i am facing error.

  • @workwork7337
    @workwork7337 4 года назад

    Hi Bro, at 13.52
    double add(double n1, double n2) {

    return n1+n2;
    }
    float use panna error show pannudhu bro.

    • @LearnAutomationOnline
      @LearnAutomationOnline  4 года назад

      What error?

    • @workwork7337
      @workwork7337 4 года назад

      @@LearnAutomationOnline when we give the
      float add(float n1, float n2) {

      return n1+n2;
      }
      //created object for addition class
      Addition adding = new Addition();
      and then when we use System.out.println(adding.add(4.6, 7.7);
      when we run it even though we have an error we get
      Exception in thread "main" java.lang.Error: Unresolved compilation problem:
      The method add(int, int) in the type Addition is not applicable for the arguments (double, double)
      at com.loa.polymorphism.Addition.main(Addition.java:30)

    • @workwork7337
      @workwork7337 4 года назад

      so changed it to double it worked fine but wanted to know why float did not work

  • @dineshroger1535
    @dineshroger1535 2 года назад

    Style of talking ??

  • @spacepot
    @spacepot 5 лет назад

    1.Is it possible to create all the 4 below objects in child class,If not please explain why ?
    1.Parent parent = new parent ();
    2.Parent parent = new child ();
    3 Child child = new child ();
    4.Child child = new parent ();

    • @LearnAutomationOnline
      @LearnAutomationOnline  5 лет назад +1

      First three are possible. Because a parent can hold child. But the fourth is not possible, because a child can't hold its parent. Clear?

    • @spacepot
      @spacepot 5 лет назад +1

      @@LearnAutomationOnline Learn Automation Online Can you please explain d difference btwn the first 3,When we need to use wch,For ex: Why we need to use parent object referencing parent class in child class

    • @LearnAutomationOnline
      @LearnAutomationOnline  5 лет назад +1

      If you watch the abstraction video, you will have a better idea on why we are using dynamic polymorphism ( parent p = new child). When we are going for abstraction, this will be useful. Parent class mostly it will be remaining as abstract one, it will generally give specifications. So we won't have the need to create objects for parent class. As I said, please watch abstraction video. So you will have a better understanding of this comment.

    • @ganeshmynampati1607
      @ganeshmynampati1607 5 лет назад

      Hi Arul Can you explain briefly about covariant return types in method overriding in Java with an example please.

    • @Mohan-sj4fz
      @Mohan-sj4fz 2 года назад

      @@LearnAutomationOnline I understood, Thank you!!!