#61 Abstract Keyword in Java

Поделиться
HTML-код
  • Опубликовано: 6 фев 2025
  • Check out our courses:
    Java Full Stack and Spring AI - go.telusko.com...
    Coupon: TELUSKO10 (10% Discount)
    DevOps with AWS: From Basics to Mastery : go.telusko.com...
    Coupon: TELUSKO10 (10% Discount)
    Master Java Spring Development : go.telusko.com...
    Coupon: TELUSKO20 (20% Discount)
    For More Queries WhatsApp or Call on : +919008963671
    website : courses.telusk...
    In this lecture we will learn:
    What is Abstraction?
    Abstract method in Java
    Abstract class in Java
    Abstract vs Concrete classes
    #1
    Abstraction is a process of hiding the implementation details and showing only functionality to the user.
    #2
    Abstract method:-
    Instead of defining the method, we can declare the method.
    If we put a semicolon at the end of a method, it means that you only declare the method like:
    public void drive();
    This method does not contain any features and you will not be able to create an object of it.
    You need to add an abstract keyword to only declare a method.
    #3
    Abstract class:-
    Abstract methods can only be defined in an abstract class.
    We need to add an abstract keyword before a class to make it an abstract class.
    Objects of an abstract class can not be created.
    If you are extending an abstract class, then it is compulsory to define all abstract methods.
    It is not necessary that an abstract class should have an abstract method.
    Abstract class can have an abstract or a normal method or both.
    An abstract class can have more than one abstract method.
    #4
    Concrete class: A class other than an abstract class is known as a concrete class.
    An object of a concrete class can be created.
    Github repo : github.com/nav...
    Java:- bit.ly/JavaUde...
    Spring:- bit.ly/SpringU...
    More Learning :
    Java :- bit.ly/3x6rr0N
    Python :- bit.ly/3GRc7JX
    Django :- bit.ly/3MmoJK6
    JavaScript :- bit.ly/3tiAlHo
    Node JS :- bit.ly/3GT4liq
    Rest Api :-bit.ly/3MjhZwt
    Servlet :- bit.ly/3Q7eA7k
    Spring Framework :- bit.ly/3xi7buh
    Design Patterns in Java :- bit.ly/3MocXiq
    Docker :- bit.ly/3xjWzLA
    Blockchain Tutorial :- bit.ly/3NSbOkc
    Corda Tutorial:- bit.ly/3thbUKa
    Hyperledger Fabric :- bit.ly/38RZCRB
    NoSQL Tutorial :- bit.ly/3aJpRuc
    Mysql Tutorial :- bit.ly/3thpr4L
    Data Structures using Java :- bit.ly/3MuJa7S
    Git Tutorial :- bit.ly/3NXyCPu
    Donation:
    PayPal Id : navinreddy20
    www.telusko.com

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

  • @rin_645
    @rin_645 2 года назад +220

    You explain 600x better than my professor.

  • @agentofchaos65
    @agentofchaos65 10 месяцев назад +15

    Thanks

  • @sohampatel-bm7gt
    @sohampatel-bm7gt Год назад +31

    You are the best teacher. This is what happens when masters of the subject explains. The most interesting thing is that you clear the doubts and put yourself in the shoes of a student.

  • @fatih5454
    @fatih5454 2 года назад +14

    Thank you so much for these priceless videos. I can not thank you enough for the quality and the efficiency of your ways of explaining concepts. I am a newbie computer science student and you are basically saving my life! I am really glad that I found your channel, will recommend to any newcomers who are trying to learn concepts in computer science in the future. Thanks a lot!

  • @hariharanrp400
    @hariharanrp400 11 месяцев назад +13

    we as a community must create a abstract class called "teachLikeNavin" and every teacher must extend it so that the world develop much faster.

  • @neocoretec
    @neocoretec Год назад +2

    Joy to watch you Navin. Thank you for the videos and your time.

  • @meeradwiwedi
    @meeradwiwedi Год назад +10

    Mind = Blown 🎉❤😊 this lecture was very interesting!

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

    Thanks, Navin, for your clear explanation of Abstract class. It really helped me understand.

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

    one think i like the most about you is how humble are you 🎉

  • @LizyAd
    @LizyAd 18 дней назад

    This is the best explanation ever on this topic! Thanks so much.

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

    Your explaination was very help to gain the knowledge and understanding the subject in an easy manner

  • @bellowajiuolarewaju1336
    @bellowajiuolarewaju1336 Год назад +5

    You are too good, I really like the way you explain things.

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

    You explain java the way that no one can.... great

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

    Sir .. Fast & Furious 7 .. Mv Name 🙃🙃 .... Car Jumped From 1 Building To Another Building There .. Transporter 2 Also Has The Same Scene I Guess 🙃 ...

  • @udaybhargav1552
    @udaybhargav1552 5 месяцев назад

    Your are too good Sir! I really love the way you explain with examples and make us understand the concepts.

  • @SaiKiranNagulapalli00
    @SaiKiranNagulapalli00 5 месяцев назад +3

    Key Points :
    We use abstract when we want to define but don't want to implement .
    Abstract methods can be part of only Abstract classes (but not vice versa).
    We cannot directly create an object from Abstract Class.
    We can extend abstract class and all abstract methods should be implemented then only we can use if we cant implement all abstract methods then we should make the class abstract hence we cannot create an object using the class.

  • @VivekSingh-zh3co
    @VivekSingh-zh3co 5 месяцев назад

    Best and simple explanation of all time...

  • @ajayghode3602
    @ajayghode3602 Месяц назад

    Thank You
    Point to remember: we can't create object of abstract class. Abstract method must be defined in the abstract class.
    concrete class- we defined abstract methods.

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

    a great, detailed playlist every concept is explained very easily

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

    Superb explanations with examples.clearing all my doubts.

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

    Your explanation give a very clear understanding about the concepts without any doubt thank you so much sir

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

    super explanation navin sir.

  • @Ayushman2004
    @Ayushman2004 14 дней назад

    love your all videos and damn you are really very crazy .. your explanations are mind blowing and understandable

  • @jnslzr
    @jnslzr 4 месяца назад

    thank you, best explanation ever about abstract/concrete classes!

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

    The best teacher i like .

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

    Your lectures need more likes😍🎉

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

    There is not even a 1% that i didn't understood
    Perfect 👍

  • @molinduachintha5375
    @molinduachintha5375 Год назад +11

    The movie is fast and furious right sir??😁

  • @abinfranklin8953
    @abinfranklin8953 Месяц назад

    8:45 “ fast and furious ”😂

  • @anupam6045
    @anupam6045 8 месяцев назад

    thank you so much for million dollar explanation sir

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

    Keep going! these videos are amazing and really helpful 😇

  • @RajKumar-mv6om
    @RajKumar-mv6om Год назад +1

    He is discussing about a car and then google provides you with a advertisement of a car🤣

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

    Thanks 😊👍 very much sir. Your explanation easily to understand.

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

    💯 👌. This is amazing

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

    What an explanation 😍😍

  • @nellaiffgameing1954
    @nellaiffgameing1954 5 месяцев назад

    Great my boss ❤🎉😂

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

    SIR CAN YOU PLEASE MAKE A VIDEO ON WHAT SOFTWARE YOU ARE USING AND HOW TO INSTALL IN ON MAC OS SPECIFICALLY,IT WOULD BE A GREAT HELP

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

    good explaination sir jii

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

    So good tutorial thank you

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

    Hi Navin, I have a doubt. There should be one abstract method inside the abstract class to call it an abstract class right? Correct me if i am wrong.
    Thank you

  • @Code-y4v
    @Code-y4v 10 месяцев назад

    Thank you . Well explained

  • @randomthings110
    @randomthings110 11 дней назад

    Thank you

  • @biswajeet9826
    @biswajeet9826 10 дней назад

    Thanks a lot!

  • @divya.d6049
    @divya.d6049 Год назад

    ur laughing is beautiful sir😜

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

    Why we refer object as Car obj = UpdatedWagonR () and why not, UpdatedWagonR obj= UpdatedWagonR(); ?

  • @roopad2031
    @roopad2031 Год назад +2

    When a class is abstract without any abtract methods and having only normal methods. Then how to access those methods as we cannot create an obj for abstract class.. please clarify this Navin

    • @adarshmishra4332
      @adarshmishra4332 Год назад +3

      Create a dummy class that extends the abstract class.

  • @shivakumart9619
    @shivakumart9619 Месяц назад

    Sir absract class implements interfaces sir?

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

    Uttar Pradesh ki bhasa m bole to, "Bhai Ek Number"

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

      I can recall Pure virtual function in C++

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

    Thank you sir

  • @manchikatlamukeshchandra5799
    @manchikatlamukeshchandra5799 8 месяцев назад

    what is the use of this topic and its applications

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

    Thank you ☺️

  • @hscodingdairies14
    @hscodingdairies14 4 дня назад

    What if we java a final method / class ?

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

    Well explained. Easy to understand. I just have one doubt,
    why do you add the "x:" while Printing anything?

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

      it's default from the IDE - vscode extension

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

    Very nice

  • @nafisnawalnahiyan5032
    @nafisnawalnahiyan5032 Год назад +2

    the movie name is Fast & Furious :p

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

    thank you

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

    thank you.

  • @amkamk3297
    @amkamk3297 Год назад +2

    Bro.
    Your channel name is expressing that you telugu language.
    Is it right??

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

    Do you have MG Commet

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

    0:33 I'm one of those lol 😅

  • @ggtajay.
    @ggtajay. Месяц назад +1

    guruji charan kahan hai aapke

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

    Sir why wagonR why not Gwagon

  • @start1learn-n171
    @start1learn-n171 11 месяцев назад

    Tq

  • @RajNithin-w9y
    @RajNithin-w9y 3 месяца назад

    sir meru god

  • @MohithKumar-46
    @MohithKumar-46 Год назад

    Sure sir I think the movie name is julayi

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

    which platform are you using for coding?

  • @MohammadKhan-ld1xt
    @MohammadKhan-ld1xt Год назад

    Why can we not create the method drive in the wagonR method rather than declaring it in the parent abstract class. Then we wont need to have the concept of abstract . Can someone pls explain ...

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

      Suppose u create a shooting game in which u must have a gun which has some properties and function. Like shooting damage recoil control. In abstract class u create only method for gun but not defined and other class must have to override it and create a method for this according to guns like akm has different properties. Now suppose in new update u introduced a new gun with different functions now its compulsory to u to override parent class method and define it again according to your new gun. I hope u understand this example.

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

    How can we perform expilicity

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

    movie name fast and furious 7

  • @charancharan2417
    @charancharan2417 2 месяца назад

    Can anyone suggest which is the application used to run java program here

  • @Ketanrathod0593
    @Ketanrathod0593 10 дней назад

    Subtle explanation!

  • @sivastarlord
    @sivastarlord 17 дней назад

    Back to the future car flys

  • @siddhantswarupmallick6710
    @siddhantswarupmallick6710 5 месяцев назад

    noice video!!

  • @ribhubhardwaj2836
    @ribhubhardwaj2836 2 месяца назад

    6:50

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

    Oh i thought G-Wagon 😅

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

    joke of the day i want a car to fly...😂😂😂

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

  • @sohampatel-bm7gt
    @sohampatel-bm7gt Год назад +1

    You also look like J Sai Deepak.