SINGLE INHERITANCE WITH EXAMPLE - JAVA PROGRAMMING

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024
  • INHERITANCE - JAVA PROGRAMMING
    #javatutorials, #javalectures, #inheritanceinjava
    Subscribe
    / @sundeepsaradhi
    ----------------------------------------------------------------------------------------------------------------
    CORE JAVA TUTORIAL FOR BEGINNERS || LEARN CORE JAVA IN 15 HOURS || JAVA TUTORIALS FOR BEGINNERS
    • CORE JAVA TUTORIAL FOR...
    PYTHON PROGRAMMING FOR BEGINNERS (ENGLISH)
    • WANT TO LEARN PYTHON? ...
    PYTHON TUTORIALS FOR BEGINNERS (తెలుగు లో)
    • Python in One Shot(తెల...
    PYTHON OOPS - MODULES - EXCEPTION HANDLING (తెలుగు లో)
    • PYTHON - OOPS CONCEPTS...
    PYTHON NUMPY TUTORIAL IN TELUGU (తెలుగు లో) || COMPLETE NUMPY TUTORIALS IN TELUGU
    • PYTHON NUMPY TUTORIAL ...
    PYTHON PANDAS TUTORIAL IN TELUGU (తెలుగు లో) || COMPLETE PANDAS TUTORIALS IN TELUGU || DATA SCIENCE
    • PYTHON PANDAS TUTORIAL...
    MATPLOTLIB LIBRARY - PYTHON PROGRAMMING (ENGLISH)
    • MATPLOTLIB LIBRARY - P...
    PYTHON DATABASE CONNECTIVITY - MYSQL & MS-EXCEL
    • PYTHON DATABASE CONNEC...
    DATA STRUCTURES USING PYTHON (ENGLISH)
    • DATA STRUCTURES USING ...
    DevOps
    studio.youtube...
    R PROGRAMMING
    studio.youtube...
    HTML TUTORIALS WITH IMPLEMENTATION || LEARN HTML IN 4 HOURS
    • HTML TUTORIALS WITH IM...
    LEARN CSS IN 3 HOURS || CASCADING STYLE SHEETS FOR BEGINNERS
    • LEARN CSS IN 3 HOURS |...
    JAVA SCRIPT FOR BEGINNERS IN 7 HOURS || LEARN JAVA SCRIPT IN 7 HOURS || JAVA SCRIPT
    • JAVA SCRIPT FOR BEGINN...
    XML (eXtensible Markup Language)
    • XML (eXtensible Markup...
    OPERATING SYSTEM
    • OPERATING SYSTEM
    ETHICAL HACKING
    • Video
    VI EDITOR BASICS IN LINUX / UNIX || LEARN VI EDITOR COMMANDS || LINUX || UNIX
    • VI EDITOR BASICS IN LI...
    HOW TO DOWNLOAD & INSTALL MySQL IN WINDOWS 10
    • HOW TO DOWNLOAD & INST...
    DATABASE MANAGEMENT SYSTEM
    • DATABASE MANAGEMENT SY...
    PYTHON PROGRAMS
    • PYTHON PROGRAMS
    C PROGRAMMING
    • 01 - VARIABLES & CONST...
    ----------------------------------------------------------------------------------------------
    Instagram : / sundeepsaradhikanthety

ความคิดเห็น • 116

  • @kalyanboddeda9343
    @kalyanboddeda9343 4 ปีที่แล้ว +20

    I am studying diploma of cme group, By this lock down I have forgotten all the syllabus but by your videos again we are getting revision thank you so much Sir 😇and explained very well 😊

  • @AnupriyaDeva
    @AnupriyaDeva 2 หลายเดือนก่อน

    Cristal Clear Explanation and on Points Sir. Salute for you🫡

  • @nikhilkhapekar3186
    @nikhilkhapekar3186 ปีที่แล้ว +2

    Sir good evening, I am from Electrical background.but, I have 1% knowledge of java . I am watching yours videos .from this video I have easily known about what is oops?, what is static class? and I am liking your ways to show how to work the program. I wrote this comment after watch your video.

  • @meenankminnu816
    @meenankminnu816 3 ปีที่แล้ว +6

    Thank you so much sir, for such clear explanation. This video will help me in my exam today!

  • @4258MK
    @4258MK 2 ปีที่แล้ว +2

    #Thank you sir !!

  • @Dinesh-tb6nt
    @Dinesh-tb6nt 4 ปีที่แล้ว +5

    Clearly explained sir..thank you so much❤️❤️

  • @tthamil
    @tthamil 2 ปีที่แล้ว +1

    THANK YOU AND ITS CLEAR INSTRCTIONS

  • @raviroybhumihar7738
    @raviroybhumihar7738 3 ปีที่แล้ว +71

    Sir I ain't know Java Programming just for Interview sake I came to learn OOPS concepts.. Your teaching for basics were too good.. I understood each nd everything. Thank-you very much.🙏🏻

    • @igaming_
      @igaming_ ปีที่แล้ว

      Which interview bro
      Did u got selected??

  • @Me0w_Meaw
    @Me0w_Meaw 11 หลายเดือนก่อน

    This sir is a GEM. Absolute boss.

  • @cooljaytv1136
    @cooljaytv1136 ปีที่แล้ว +1

    New subscriber,,, i should miss non from now

  • @prathimagj8526
    @prathimagj8526 2 ปีที่แล้ว +1

    Nice teaching 👌

  • @fayazbasha3599
    @fayazbasha3599 ปีที่แล้ว

    Thank you sir. Clear explanation for understanding

  • @AmongUs-qt3uo
    @AmongUs-qt3uo ปีที่แล้ว

    Wow sir what a beautiful explanation ❤️

  • @dhimanroy6002
    @dhimanroy6002 2 ปีที่แล้ว +1

    Thankyou Sir.

  • @sushilasapkota3391
    @sushilasapkota3391 5 ปีที่แล้ว +1

    Sir the way you teach is the best ,you are very good.

  • @michaelnurbangon2356
    @michaelnurbangon2356 5 ปีที่แล้ว +1

    Thanks for this video its help me alot about in my report

  • @mohammadusman9685
    @mohammadusman9685 2 ปีที่แล้ว +1

    Thank you very much sir 😊

  • @bibhuprasadsubudhi1340
    @bibhuprasadsubudhi1340 ปีที่แล้ว

    Concept clear in this vidio tq sir

  • @bhaskarvardhamana
    @bhaskarvardhamana ปีที่แล้ว

    Super good very nice

  • @iuriigorbaniuk3248
    @iuriigorbaniuk3248 2 ปีที่แล้ว

    Cool This guy deserves our praise!

  • @akshatabani8927
    @akshatabani8927 3 ปีที่แล้ว +1

    Ur really amazing sir

  • @MuhammadAsim-sk3pg
    @MuhammadAsim-sk3pg ปีที่แล้ว

    Good explanation thank you

  • @AnushaS-ct5ff
    @AnushaS-ct5ff 4 ปีที่แล้ว

    Veryyyy useful. Tq sir.
    I had understand it easily

  • @gayathridevi8732
    @gayathridevi8732 ปีที่แล้ว

    really awesome sessions....

  • @chinigepallieswarsaikumar7588
    @chinigepallieswarsaikumar7588 3 ปีที่แล้ว

    Very Good content really awesome content

  • @kavitharavichandiran34
    @kavitharavichandiran34 ปีที่แล้ว

    Great Explanation

  • @michaelnurbangon2356
    @michaelnurbangon2356 5 ปีที่แล้ว +2

    Keep it up sir. Thanks alot

  • @Sniper__prince
    @Sniper__prince 2 ปีที่แล้ว

    now your subscribers is 456k congratulations

  • @preethichamarthi7325
    @preethichamarthi7325 4 ปีที่แล้ว +1

    Sir.,plz upload getter and setter methods. Ur way of teaching is very helpful to me..

  • @vasaripraveenreddy5268
    @vasaripraveenreddy5268 3 ปีที่แล้ว +3

    sir actually in c++ initialization of class members(like variable int a=10) directly in class is not allowed as it is against data hiding concept .how is it possible in java

  • @mohanyadav9698
    @mohanyadav9698 2 ปีที่แล้ว +1

    Tq sir

  • @anuvin8924
    @anuvin8924 3 ปีที่แล้ว

    Thanks much very helpful

  • @ruthidevaguptapu4677
    @ruthidevaguptapu4677 4 ปีที่แล้ว +7

    sir!can I write the same program using dynamically i.e, using a scanner(by giving a and b values at the run time)

  • @tabithabathina3828
    @tabithabathina3828 3 ปีที่แล้ว

    thankyou sir for the videos

  • @charangummadi6863
    @charangummadi6863 2 ปีที่แล้ว +1

    ❤️

  • @josephnganga6387
    @josephnganga6387 5 ปีที่แล้ว +2

    Thank you for helping us ##begginers

    • @vinnavanarul2503
      @vinnavanarul2503 3 ปีที่แล้ว

      It's been one year... How you are handling inheritance now?

  • @saiharshapingali7577
    @saiharshapingali7577 2 ปีที่แล้ว +1

    sir can we access the private data members through the object of child class

  • @parisarlarevathi6601
    @parisarlarevathi6601 ปีที่แล้ว

    Sir in the example if u want to print parent then why have declared as in a ? instead of string

  • @abhijitmondal9203
    @abhijitmondal9203 4 ปีที่แล้ว +10

    Hi Sir,
    Could you please let me know why Multiple Inheritance and Hybrid Inheritance are not possible in java directly?

    • @nerellasrivyshnavi9068
      @nerellasrivyshnavi9068 3 ปีที่แล้ว +3

      Due to ambiguity problem

    • @shubhdeepak6414
      @shubhdeepak6414 3 ปีที่แล้ว +1

      @@nerellasrivyshnavi9068 nice timing

    • @curiouscoding1230
      @curiouscoding1230 ปีที่แล้ว

      Multiple inheritance doesn't not support directly , for this we can use interface concept

  • @bananitutorial8579
    @bananitutorial8579 4 ปีที่แล้ว

    Very good teaching

  • @Daulathunnisa
    @Daulathunnisa 3 ปีที่แล้ว

    Brilliantly explained👍💕

  • @princejain6569
    @princejain6569 4 ปีที่แล้ว +2

    Hello Sir,
    why are you creating third class i.e Inherit to write the main method ..Can't We write main method inside Child class only ?

  • @kousalyapotnuru5802
    @kousalyapotnuru5802 2 ปีที่แล้ว +1

    Sir will you please make a video on this keyword when we used it in constructors and methods

  • @naveenkommineni6101
    @naveenkommineni6101 4 ปีที่แล้ว +4

    Sir, directly we can write the main method in child class and we can access the parent class with objects. why should we create new class for main method ( Class Inherit)

    • @mickyman753
      @mickyman753 3 ปีที่แล้ว

      sir wanted to show everything in a sorted separate way ,yes we could create main in child class and use the child class objects for accessing the parent methods .

  • @bananitutorial8579
    @bananitutorial8579 4 ปีที่แล้ว

    Thanks very much

  • @SaranSuhas
    @SaranSuhas 5 ปีที่แล้ว

    Your explanation is easy to understand...

  • @preethichamarthi7325
    @preethichamarthi7325 4 ปีที่แล้ว

    Well explained sir👍

  • @rohanrede7003
    @rohanrede7003 4 ปีที่แล้ว

    great explaination sir!
    :-)

  • @musthashaik3355
    @musthashaik3355 4 ปีที่แล้ว +2

    instead of giving different variable names like a,b . if I gave same a,a then subclass and parent class values will different r same

    • @vinnavanarul2503
      @vinnavanarul2503 3 ปีที่แล้ว

      Yeah... Please explain... I have the same doubt

    • @vinnavanarul2503
      @vinnavanarul2503 3 ปีที่แล้ว

      Answer is in other command... Pls read other commands also

    • @anshultanwar3212
      @anshultanwar3212 ปีที่แล้ว

      different as the scope of var will be over once we go outside the class

  • @sheendarlin
    @sheendarlin 4 ปีที่แล้ว +1

    Great. Thank you very much

  • @challamanikishor6283
    @challamanikishor6283 4 ปีที่แล้ว +1

    Sir please explain examples programs OOPS concepts

  • @KaisarAnvar
    @KaisarAnvar 2 ปีที่แล้ว +1

    Do you have udemy courses?

  • @askhere373
    @askhere373 3 ปีที่แล้ว

    thanks sir 👍

  • @programmer649
    @programmer649 3 ปีที่แล้ว +5

    sir if we declared a same variables names in two classes then how can we access super class variable in sub class

    • @vinnavanarul2503
      @vinnavanarul2503 3 ปีที่แล้ว

      Answer is in other commands... Pls read other command too...

  • @2sridurga354
    @2sridurga354 3 ปีที่แล้ว +2

    Can we create a object for parent class and can we access the variables and methods of child class through the object created for parent class...?

  • @fahadfadhu0413
    @fahadfadhu0413 3 ปีที่แล้ว

    God👍

  • @s.shivaanishri3939
    @s.shivaanishri3939 ปีที่แล้ว

    👍👍👍👍👍👍👍👍

  • @jagadeeshkommata1307
    @jagadeeshkommata1307 3 ปีที่แล้ว

    Sir this video will help in my exam? Please reply sir

  • @ernestprincesamuel3413
    @ernestprincesamuel3413 ปีที่แล้ว

    where do we use inheritance

  • @Cricfever99
    @Cricfever99 5 ปีที่แล้ว +1

    Hats off 👍

  • @tanushsathiyaseelan9428
    @tanushsathiyaseelan9428 3 ปีที่แล้ว

    Sir please upload setter and getter methods

  • @ishanbarma300
    @ishanbarma300 4 ปีที่แล้ว +1

    Sir , why do we take String args[] inside void main ?

  • @khadgashrestha144
    @khadgashrestha144 2 ปีที่แล้ว +1

    why you using Display in parent and show in child class ? can we use display instead of show and display in show??

    • @riwmi2302
      @riwmi2302 2 ปีที่แล้ว

      These are just variable names, they could be any word.
      If I did not get that correctly, the whole concept of this video is inheritance (passing on something in this case variables and methods), with the use of the "extends" keyword, it is possible for the child class to inherit variables and methods from the parent class, that is only possible for the child class, the parent class can not get this feature.

  • @subhamroul6099
    @subhamroul6099 4 ปีที่แล้ว

    Sir in last inheritance class in case showing the parent class don,t we have to creat new obj

  • @nandhinivaradharajan8832
    @nandhinivaradharajan8832 3 ปีที่แล้ว

    Sir! Can you post the Object Clonning topic ...?

  • @rakeshbhoite4495
    @rakeshbhoite4495 ปีที่แล้ว

    Sir superclass kyo nahi use kiya

  • @surabhi2007
    @surabhi2007 3 ปีที่แล้ว +1

    hello Sir, your videos are very explanatory. I have a question.. I have used same method name in parent as well as child class . So it did not give me any error, but how can i access the method in parent class in this case?

    • @tusharmehra3867
      @tusharmehra3867 3 ปีที่แล้ว +1

      Because in this case what u did is overwrite that method.. u can do this in any child class like there is a person class as parent class and then for child class u create 2 classes singer and dancer.. now in parent class u declare person is walking and then in both child class u can access this but if in 1 class u dont want to access this one and want something like singer cant walk so for only this particular child class u can create a method( in this child class named singer)with the same name as walking method in parent class and make modifications specific to this class...it wont apply to other classes..so thats y it is working.. correct me if i m wrong

  • @iranna95
    @iranna95 5 ปีที่แล้ว

    Sir can u make more video on java programming

  • @rtadwq...------...----.
    @rtadwq...------...----. 4 ปีที่แล้ว

    Clearly explained sir

  • @parveentaj5745
    @parveentaj5745 3 ปีที่แล้ว

    While I'm running the code it is showing that couldn't find or load main class

    • @RamYashodha
      @RamYashodha 3 ปีที่แล้ว +1

      Meeru e folder lo save chesaro check chesi a folder lo ne command prompt open cheyandi appudu as error radhu

  • @jayant4532
    @jayant4532 4 ปีที่แล้ว

    ISC CLASS 12TH????????

  • @yeserusreekanth2661
    @yeserusreekanth2661 5 ปีที่แล้ว +1

    Sir CAN YOU TELL US AN "IOT "CLASSES.

  • @SameerShah-go5ol
    @SameerShah-go5ol 5 ปีที่แล้ว

    I have a problem in inheritance

  • @bitsdsmj45
    @bitsdsmj45 5 ปีที่แล้ว

    android developing sir

  • @mukulpandey8555
    @mukulpandey8555 4 ปีที่แล้ว

    Sir u are creating class object c outside the brackets of of child class using its name .. how is this possible outside child class to create a object of child class..
    ..
    Plz help

  • @naveenbala4140
    @naveenbala4140 3 ปีที่แล้ว +1

    why you using child word inside public static void main direclty put just c .....and i had another doubt what is the difference between void and public static void main

  • @kousalyapotnuru5802
    @kousalyapotnuru5802 2 ปีที่แล้ว +1

    Sir I have a question that to access instance variable value we are using this keyword in this .And also to access instance variable we use object then what is the need of this keyword again simply code complexity reduces when we create object

  • @bharathmamidi1006
    @bharathmamidi1006 5 วันที่ผ่านมา

    Nice explanation sir 🙏🏼

  • @saaaondowuesemathias9407
    @saaaondowuesemathias9407 3 ปีที่แล้ว +1

    That's good Sir.

  • @yaswanthsai639
    @yaswanthsai639 ปีที่แล้ว

    good explanation. Tq

  • @khushmnsangha177
    @khushmnsangha177 ปีที่แล้ว

    thanku sir

  • @satyadodda2386
    @satyadodda2386 4 ปีที่แล้ว +2

    Resulting an error that cant find main(string[])method in class p
    Can u plss solve it sir

    • @sundeepsaradhi
      @sundeepsaradhi  4 ปีที่แล้ว +3

      Hi
      Save the file with classname in which you have written main function

    • @satyadodda2386
      @satyadodda2386 4 ปีที่แล้ว +2

      @@sundeepsaradhi tq sir

    • @manmathrath9121
      @manmathrath9121 3 ปีที่แล้ว +1

      @@sundeepsaradhi sir i have saved the file with class name in which i have written main function but still showing same error.can you plz solve this sir

  • @seelamjhansisri9478
    @seelamjhansisri9478 4 ปีที่แล้ว +1

    Sir can u please tell us Nested classes...

  • @manasagolakoti2194
    @manasagolakoti2194 3 ปีที่แล้ว

    Sir can you please make a video in oops concept interview based programs not theory only programs sir

  • @kampeshree7546
    @kampeshree7546 5 ปีที่แล้ว +4

    Sir telugu lo cheppandhi

  • @iranna95
    @iranna95 5 ปีที่แล้ว +1

    Sir can u make one more tutorial on android developing plz sir

  • @nagavenkataprakash4837
    @nagavenkataprakash4837 4 ปีที่แล้ว

    Try to buy big board it is not clearly visible

  • @smrutisingh9619
    @smrutisingh9619 4 ปีที่แล้ว +6

    while running the programme error is coming.

    • @sundeepsaradhi
      @sundeepsaradhi  4 ปีที่แล้ว

      Hi
      Send the code to askme.selflearning@gmail.com

  • @ridewithuday203
    @ridewithuday203 5 ปีที่แล้ว +1

    Sir u r a good teacher

  • @rsvlogs8709
    @rsvlogs8709 3 ปีที่แล้ว

    cant load main class

  • @umamaheshpilla4951
    @umamaheshpilla4951 3 ปีที่แล้ว

    Good explanation from you sir, very thankful to you🤝🤝

  • @anagondiobulesu9932
    @anagondiobulesu9932 2 ปีที่แล้ว

    Sprr sir

  • @nidhinthedon886
    @nidhinthedon886 3 ปีที่แล้ว

    good video

  • @josephnganga6387
    @josephnganga6387 5 ปีที่แล้ว

    Nice one

  • @RahmaDaud-zo6cy
    @RahmaDaud-zo6cy 5 หลายเดือนก่อน

    I don't know how to thank more than "thank you"
    but you deserve thousand times.
    Sometimes when when you are saying "Hope you understood" 🥰 i see my self replying "YESSS 100%"
    THANK YOU SIR YOU ARE THE BEST