abstract class program in java | Learn Coding

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

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

  • @OfficialMotivation3423
    @OfficialMotivation3423 Год назад +9

    MashaAllah sir you are very good teacher forever

  • @anitagola4794
    @anitagola4794 6 месяцев назад +6

    Apki sikhane ki technique bhut achi hai thanku

  • @rahulbisht5216
    @rahulbisht5216 2 года назад +30

    Thanks mere bhai you made my programming career , I really appreciate your hard work.

  • @infotechprasad7274
    @infotechprasad7274 10 месяцев назад +1

    Very nice explanation

  • @saiyedmohammadnawaz7192
    @saiyedmohammadnawaz7192 2 месяца назад +1

    great job

  • @asfandiyarwali377
    @asfandiyarwali377 Год назад +7

    mashaALLAH sir keep it up.

  • @KiranBPatil-rp7wy
    @KiranBPatil-rp7wy 2 года назад +2

    Veryy helpful ❤️

  • @nazi07able
    @nazi07able 7 месяцев назад

    Thank you Sir! :)

  • @hafsaaestheticvlogs7913
    @hafsaaestheticvlogs7913 9 месяцев назад

    Amazing ❤

  • @Cric_trick572
    @Cric_trick572 26 дней назад +1

    In main function the object will be animal r = new Dog() and animal l = new Lion()..

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

    Thank u so much sir🙂

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

    Thank you brother for your help

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

    sir aap must padhate ho

  • @SantLal-eh8ox
    @SantLal-eh8ox 10 месяцев назад

    Thanks sir

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

    When you ans my comant then I subscribed your chanal

  • @rajkumargautam4632
    @rajkumargautam4632 8 месяцев назад +1

    Sir mujhe ek doubt hai , mene dekha ki yahan abstract method ek template ki tarah work kar raha hai and baki another Child class us template ko use karke apna apna behaviour show kar rahe hai to sir ye to method overriding ki tarah hi hua na kyu method overriding me bhi same method name hota tha but uska behaviour sabhi child class apni requirements ko dekh kar define karte the .
    To sir mujhe ek doubt hai ki method overriding and abstract method me kya difference hai ?

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

    thank u so much

  • @chinmaygaikwad7690
    @chinmaygaikwad7690 2 года назад +2

    yaha per hum animal class ka(parent class) ka referance variable bana ke bhi subl classes ko call ker sakte hai kya... ?🤔👇
    animal r = new Dog();
    animal l = new Lion();

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

    Tq sir 🙏

  • @arnavarni1123
    @arnavarni1123 6 месяцев назад

    Which app do you use for java

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

    Sir net web designing ke MCQ notes mil jaenge

  • @jackuvishwh2937
    @jackuvishwh2937 3 года назад +1

    Advance java pe video bnaye

  • @pulkitgupta5625
    @pulkitgupta5625 2 года назад +2

    Yha par @Override use kyon nhi kia h?

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

    Sir ager abtract class man aek se zayada normal constructors hon..tu super ka word kis ko call kare ga

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

    Can you make spring boot video, I’m eagerly waiting this

  • @RanjanKumar5
    @RanjanKumar5 3 года назад +1

    In this Abstraction program ,there is inheritance fine, but there is also polymorphism MEDHOD OVERRIDING [ public void sound ( ) ] and ur still saying its abstract ???

    • @MAX-ym1pm
      @MAX-ym1pm 2 года назад

      Yaa ofcourse where there is inheritance there will definitely method over riding comes bro

    • @MAX-ym1pm
      @MAX-ym1pm 2 года назад

      It's correct example for abstraction

  • @Billionaire_artist
    @Billionaire_artist 3 года назад +1

    Bro your all videos are useful nd u are a good youtuber..but your voice is gruff so you should your voice bold then I'll understand very well..nd thanks for reaching us..

  • @Naveenkumar-qc6zj
    @Naveenkumar-qc6zj Год назад

    why did you use
    public abstract void sound( ) in abstarct class?

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

    I wonder why to use abstract
    Look we only create method in parent class and in child class(dog & lion) we even create method and write code and call method in main class. But we can do this without parent class eg. We need to create 2 class (dog & lion) and inside it we can create method eat() and call it in main class .
    So why to use abstraction?

    • @DreamDropsTV
      @DreamDropsTV 2 года назад +2

      you are thinking like a C programmer . You are forgetting that java follows OOP paradigm . To maintain the relationship between a generic animal with its different instances is basically an act of inheritance. With your logic why is inheritance even exists then??. Think like a real -life world problem . And don't deviate from OOP. Like we Humans Belong to Animal class which is the super Class of Animal Kingdom . After that animals gets sub divided into mammals, Amphibians, Reptiles, Avians, fish and invertebrates. This abstract class of animal kingdom doesn't have enough characteristics to differentiate each animal . It may have basic info like, an Animal will eat food, it will have legs etc. but it can't give characteristic like colour , no. of legs , life expectancy. The use of abstract class is to make a standard genaralized characteristic which every animal must follow. This analogy is very important in terms of software development and even with game development.

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

      @@DreamDropsTV wow thankyou sir

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

      @@DreamDropsTV you mean Animal have the characteristics of eating, walking but it cannot clearly give information how they eat and walk. As dog is also animal. it have the characteristics of animal so it extends or implement Animal class and in that class we need to define exactly how they walk and eat
      Due to lack or vary of information we use abstraction to define it clearly in its child class
      But can you tell me that can it be used in android development if yes then where and hou

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

      Abstract classes provide a way to enforce a certain structure in the inheritance hierarchy. By having abstract methods in the abstract class, you ensure that concrete subclasses must provide implementations for those methods. This helps in maintaining a consistent design.

  • @anitagola4794
    @anitagola4794 6 месяцев назад

    Please ek project bhi bnana dikha do me fresher hu

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

    sub class me constructor nhi bna rahe tab bhi constructor call ho raha hai ?

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

    what should be the mane of the class in the dog and lion example??

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

    apne ager Animal class ka hi object banaya hota toh super keyword ka use karne ki jarurat he nhi padti sir ji. like ex:
    Animal obj = new Dog;
    Animal Obj2 = new Lion;
    obj.sound();
    Obj2.sound();
    thank you

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

      WOO ABSTRACT CLASS HYE BRO

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

      REFRANCE BOLO

    • @AARUSHIGARG-i3i
      @AARUSHIGARG-i3i 3 месяца назад

      exactly, good that you pointed out
      i was confused there lol

  • @merajmonitor9907
    @merajmonitor9907 3 года назад +1

    Sir how to installed java in computer

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

      Install java jdk 👇👇👇
      ruclips.net/video/TNoggqhhvZo/видео.html

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

    Ye jo last per howa wo to super use kiye begair or child class mein constructor na bhi banao to print ho raha hae

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

    Bhai 😰 I have a One Doubt How The " All animals ....! " Was Print In 2 Times Please Answer My Question

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

      bhai, do baar object create kiye na isiliye..

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

    run nhi hora jese tumne bataya ese hi kia

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

    Bhai dog class me sound method ko @override kiu nahi kiya??

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

      Kyonki abstract class ke andar abstract aur non abstract dono methods hote hai jo abstract honge unko override krenge baaki ko nhi

  • @jahidaalam4971
    @jahidaalam4971 3 года назад +1

    Kabhi kabhi to lagta ki tumich bhagwan ho bawa

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

      Are nhi yaar, mere bhai बहुत अच्छा लग रहा है!😃😃😃 thank you so much

  • @ianshusawran9
    @ianshusawran9 3 года назад +1

    Thank sir jisko v smjh aaya comments kro

  • @sudeeptpradhan1407
    @sudeeptpradhan1407 4 месяца назад +2

    Isme hum override kyu nhi karrahe jabki next video mein ise kar rahe hain

    • @gopalpawar8645
      @gopalpawar8645 7 дней назад +1

      Hum sound class ko dono sub classes me override ker to rahe hi

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

    Super keyword must be first statement to call constructor

  • @samanqayyum2176
    @samanqayyum2176 10 месяцев назад

    Aik bat samjh nhi ayi is ka faida kesy hoya? inherit ho rahi hai classes super se lekin method sab mein apna call ho raha same as hierarchical inherit ki working hai clear this point

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

    ISme overriden nahi use kia hai

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

    isme alag kya hua bhai method to phir b banaye alag alag class mai

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

    can we name the class as the name of our abstract class?

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

      I think no because in intellij idea when I named the class as the name of abstract class there is showing error..

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

    Awsome sir..can i contact with you

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

      He is asking you question and you are liking the comment😂

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

    Sir mere ko coding ka first part ka link do

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

      C or C++ or Java kiska link de ya phir koi topic ka link bolo

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

      @@LearnCodingOfficial sir g mere ko coding sikna hai to aap bolo first Kay sikna hai

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

      Phle aap c language sikho uske baad java ya phir python dono me se ek choose kro aur career me aage बढ़ो

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

      @@LearnCodingOfficial koi free learning hai kay🥺🥺

  • @farmesh6024
    @farmesh6024 3 года назад +1

    Sir please first explain html

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

    Mujhe samajh nhi aya bhai

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

    ALlEenahalwalkfbud

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

    Kuch bhi padha diya bhai ....

    • @viholvishwassinh1709
      @viholvishwassinh1709 9 месяцев назад +1

      Pichla lecture dekho

    • @honeman
      @honeman 9 месяцев назад +2

      ​@@viholvishwassinh1709 bro 9 month ka baad batane ka no use 😅 i guess exam tho ho gye 😅😅

    • @59shaikhhares15
      @59shaikhhares15 9 месяцев назад +3

      😂​@@honeman@avi😂

  • @zzgaming9857
    @zzgaming9857 9 месяцев назад