In Java, inheritance is a mechanism where a child class acquires the properties of a parent class, enabling code reuse and hierarchical organization. The 'extends' keyword establishes inheritance relationships, with Class A as the parent (superclass) and Class B as the child (subclass). Four key rules govern inheritance: (1) Parent class objects with parent references can only call parent class methods, (2) Child class objects with parent references can only call parent class methods, (3) Child class objects with child references can call both parent and child class methods, and (4) Parent class objects with child references result in compile-time errors. Java supports three types of inheritance: single inheritance (one parent, one child), multi-level inheritance (child can access grandparent methods), and hierarchical inheritance (one parent can have multiple children). Java does not support multiple inheritance (one class inheriting from multiple parents).
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Inheritance Day 41 By KishanAdded:
please respond in the chat guys yes yes yes yes yes yes very very green guys very very Greening all right so let us start our session here today so guys before starting our session before starting your session uh I just want to share a small like not a small a good news like one of our students has got placed like one of the success story [Music] no guys disease the success story of Ganesh his name is Ganesh and he got placed in Mind Tree as a fresher as a fresher with a package of 4 lakhs how awesome it is with a package of 4 lakhs and he is joining that his 25th March and do you know what the best thing is still core Java is completely like it's not yet completed it's present in like encapsulation only kojo is not at completed oops Concepts is also noted completed he got placed in Mind Ray and these are the questions which he faced tell me about yourself why you are choosing I.T over civil is actually a civil student as I told you non-80 student what is actually a link released guys this is linked list is a predefined class which is present in collection framework like we'll be discussing about that Linker list what is a Constructor types of package like what is the package and types of packages features of oops concepts of course write a program to print right angle triangle by using for Loop what is pointer string questions on pointers questions on strings arrays dbms this is like SQL and these are like normal questions why should we hire you do you have a laptop are you willing to relocate do you have any questions for me so in these 13 questions which he faced nearly eight cushions like seven to eight questions are Technical and all other are normal questions how easy it is and 25th March is his joining date 25th March is next week next week Friday actually Fridays is joining it and Saturday you'll be having a league I mean week off like that nice right nice right right right right yeah Mukesh he's from non-80 background he's basically from civil engineering he's basically from civil engineering buddy and he got placed in ID right yes yes yes yes very very happy guys very very happy I congratulated him also and I'll say that you guys have also congratulated very very happy guys yes yes all right all right so let us start our session here today guys so guys before starting our session before starting our session let me try to have a very very small and a quick recap of the concept which I had covered in our yesterday's class so guys yesterday we have started discussing about one of the very interesting topic in core Java that is oops features so we have seen what is the difference between object oriented programming language and procedure oriented programming language and then we had started discussing about encapsulation and guys I believe you have already remembered I told you when we are speaking about encapsulation there are two kinds of definitions are there like uh yes encapsulation means it is a process of wrapping up of data or binding up of data into a single unit that is correct definition but I don't recommend this definition I request you to please go with the second definition that is encapsulation means it is a process of making Fields as ah come on it is a process of making Fields as come on private private exactly and providing access to those fields with the help of with the help of public methods public methods that is through Setters and Getters methods that is through centers and get us methods so I mean actually we already seen a program on this and I requested you to give like in a small program also like I requested you to write a program to provide encap session for employee name employee ID employee salary employee department and employee address right so I got the program uh sudharani I got your program I see your output also that is very good that is very good now so guys did you do that okay I got the program from wrathod rather yes yes guys please do the tasks which I'm giving you here please okay all right all right so these are the topics which we had covered in our yesterday's class now today we are going to start discussing about one more oops feature that is inheritancy inheritance one more feature that is inheritance guys inheritance um when you're speaking about inheritance guys as a matter of fact we have already have a basic idea about inheritance emulator wrong did you remember where or when we have like studied about inheritance in object class am I right yes or no yes in object class in object class I told you like what is actually inheritance can you Urban did you remember the definition guys inheritance means acquiring acquiring the properties of prop ER to is acquiring the properties of of one class into another class inheritance means acquiring the properties of one class into another class es very very very simple concept guys very simple concept now guys actually most of the time people will be getting confused regarding easy relationship and has a relationship there are two types of relationships guys is a relationship and has a relationship right inheritance means it is it is inheritance that is inheritance is also known as k n o w n also known as is a relationship what is is a relationship I'll let you know just within a span of five to ten minutes I'll let you know no problem no problem guys okay now now after that after that in Java in Java we can achieve we can achieve inheritance in Java we can achieve inheritance by using by using extends extends or implements keyword k-u-i-w-o-r-t keywords guys keywords keywords these are just let me try to right extends keyword sorry just a second just let me make it like 22 okay extends is a keyword implements is also a keyword right so again I'm saying you guys again I'm saying you in Java if we want to achieve inheritance we need to use either extends keyword or implements keyword when we will be using these extents when we will be using this implements keyword you will be understanding within two to three days of time okay now as of now time's off now guys we will be discussing about we will be discussing about extends keyword as of now we'll be discussing about exchange keyword no not that extends keyword sorry right okay wait for implements keyword wait for implements we will be discussing about that we'll be discussing about that as of now we'll be discussing about extends keyword okay now let me try to go with a small program here Class A Class B right now guys today in our today's class we will be having little bit Theory if you are not understanding today's class tomorrow you will not understand day after tomorrow we are going to deal with polymorphism you will not understand after that abstract also you'll not understand so I'm requesting you guys can I get your complete attention in our today's class any response from everyone any response from everyone please all right that is wonderful all right guys please observe here I am having a method I'm having a method okay public void public void method one like this just a method just a method now here I am writing system dot out dot println okay just let me make it like wide just a basic default method system dot out Dot println and here I am writing class A plus a method that's it not more than that now my question is guys can I call this method from class B can I access that method from class B just answer yes or no very good I can answer okay I can access okay let me have my main method first I am having my main method okay inside the main method guys what I need to do what I need to do uh sir you need to create an object very good Which object I am supposed to create guys come on be attentive be attentive please interact with me please interact in the class which object I need to create class a object or Class B object obviously classier object for example if I am writing new class B like I'm trying to create an object for class b b o b j belongs to class B like that class B like that now if I'm trying to call Bob J dot method one method one obviously I will be getting an error another person why because method of one ah method one method one exactly method One belongs to class a method one is present in class A matter of does not belong to class B so you cannot call that okay I understand so if I want to call this method one I need to create an object for my class EA and okay let me have a reference please a o b j belongs to class A like that now this is an object for my class A and with the help of that object reference that is a o b j a o b j dot method one what do you say guys can I call like that yes right click run as Java application and of course I'll be getting my output that is class a method like this now now guys this is important please listen Class B Class B has class a object am I right or wrong Class B has h a yes Class B has class a object am I right or wrong this is known as has a relation this is known as has a relation are you understanding me guys please help me out please help me out fantastic very good very good now guys uh can you please tell me uh why I did not use any import statement why I did not use any import statement why yes sir come on sir we already know this how many times you will ask uh even though please tell me here sir both class A and Class B are present in the same package if they are present in the same package no need to use import statement wow that is perfect that is perfect when we need to use import statement if both the classes are present in two different packages only if both the classes are present in two different packages then and then only we need to use import statement but as of now Class A and Class B both are put in the same package so obviously no need to use import statement fantastic very good very good fine so now my requirement is sir I don't want an error here in line number eight I am having an error my error should be resolved buddy how that error will be resolved method One belongs to class A yes but is there any other uh way so that I can resolve my error exactly fortunately we are having a way that is that is through inheritance concept what is a concept what is the concept tell me the concept guys tell me the concept name tell me the concept name inheritance inheritance so what we need to do we need to guys listen we need to inherit Class A into class B we need to inherit Class A into class B so how that is possible Point number one guys if you want to achieve inheritance how many keywords are there I told you just know it only how many keywords are there two keywords are there right extends and implements now now we are trying to provide inheritance between classes I'm right or wrong yes two classes Class A into class B we are supposed to use the keyword extends extends which keyword we are supposed to use extends okay e x p e and Bs extends class please observe line number eight please observe line number eight class yay is my error result is my error result of course it got resolved now guys in this class B okay I'm having Class A and Class B right Class A is known as parent class parent class class B is known as child class now answer my question guys answer my question if my father is having a car if if my father is having a car can I access his car can I ask yeah come on guys yes of course he's my father I'm his son he is my father I'm his son he is my parent I am his child so child class objects child class objects can access parent class method are you understanding me guys yes or no what do you mean by inheritance what do you mean by inheritance inheritance means acquiring the properties of one class into another class here as we have inherited Class A into class B we can access we can access parent class method with child class object now this is known as this is known as ah what what that relationship is known as is that relationship is known as is a relation Class B Class B is able to access class a method I hope you're understanding me guys Class A I mean Class B is able to access class a method let me do one thing let me do one thing just let me try to copy this and just I want to keep it here like this this is okay oh just a second just a second like this it's okay no problem is it visible is it visible guys please help me out is it visible okay foreign right this is Class A this is Class A and this is Class B classic just a second guys right this is Class A and this is class just let me try to keep it like this and uh this also foreign space okay I think that would be sufficient write that like that okay just just small box this is Class A this is Class B this is Class B like this okay now now guys here here terminologies are very very important terminologies speaking about terminologies for example let us try to have let us try to have times what is it okay and I'll make it as 22. okay now Class A this is Class A and this is Class B Class A and Class B okay now Class A is known as Class A is known as parent class ah tell me Class B is known as Class B is known as child class child class ah class class A is known as super class B is known as mom subclass a is known as base class Class B is known as any idea please help me out derived class derived class okay is it here guys is it clear please help me out please help me out please right okay that is great that is great now now guys let me just go with right now I'm going to discuss about some important key points very important key points in inheritance very very important key points in inheritance if you are not remembering these key points then learning inheritance is little bit hard okay please please now now before going to those key points just let me try to go with like key points in inheritance i n h e r i inheritance Four Points will be there guys just four points just four points I'm 100 sure easily you will be able to remember all those four points I know about my students I'm sure I'm sure you easily will be able to remember all those points now before going to those four points first I want to have a small clarity guys new class A and here I'm going with a overbj belongs to class A like this now my question is what is this class A like parent class or Cherry class in my example just now we have written the program right just now we have written the program in this program class EA is parent class or child class okay fantastic this is a parent class parent class very good very good so this is parent class very good very good now what is this tell me I have highlighted I have highlighted what is that tell me in parent and child terminologies don't don't say that I need a terminology I need a technology no not creating an object what is that what is that try to say in terminology wise ah exactly parent class object I'm right or wrong am I right or wrong this is parent class object okay what is this what is this what is that pair in class reference that's it this is pair and class object this is pair and class reference I'm right around right guys right right right right right now points points first point first point just a second right first point foreign we can hold we can hold parent class object with parent class reference and with that reference we can call only parent class methods we can call only parent class methods do you understand I'm saying that we can hold we can hold parent class object with parent class reference with that reference we can call only parent class methods example example new can you please give me the code please give me the code for this new sir what is parent and child class guys in our program in our program Class A is parent class class B is child class ah now tell me now tell me very good Mukesh very good that is very good now I am going to give you the code guys please observe here new class A okay equal to a o b j belongs to class A like that Class E like that okay with the help of this reference with the help of this reference which methods I can call parent class methods only parent class methods only parent class methods now Point number two Point number two Point number two we can hold we can hold child class object with parent class reference reference and with that reference with that reference we can call only only pair and class methods slowly slowly slowly don't take don't try to reach this point fastly slowly we can hold child class object with parent class reference and with that reference we can call only parent class methods okay can you please give me the code how to do that give me the code give me the code no class chain class object change class object exactly B uh like this now hold that width pair and class reference Class A parent class reference and with that reference which methods we can call only paid and class methods second point third point third point we can hold we can hold child class object with child class reference and with that reference we can call both parent and child class methods with that reference we can call both parent and child class methods come on give me the code give me the code guys I'm waiting I'm waiting exactly new class B like this let me try to have a reference b o b j belongs to class B like that and we can call we can call both parent and jail class methods I'll show you I'll show you the help of the program no issues now finally last point last point is last point is we can't hold we can't hold parent class object with child class reference we will be getting a compile time error we can't hold parent class object with a child class difference yeah obviously I cannot control my father my father can control me I'm right or wrong guys yes I cannot control my father at all if I'm trying to control my father I'll be getting we'll discuss about that later are you understanding me guys I believe everything is I mean for everyone that would be same in every homes that will be same am I right or wrong exactly exactly right uh now please answer here please observe here if you are trying to hold new class a parent class object with a child class reference B I mean Class B Class B like that child class reference like this we will be getting an compile time error i n v a l i d this is invalid or else we'll do one thing we'll be getting a compile time error like this compile the matter is it clear guys for everyone guys please tell me is it clear right right now Guys these four key points are very important in inheritance if you are not remembering these four points no you will not be understanding Hoops features directly I'm saying you you'll not understand the antelope switches let us try to work these four points with our code okay now let me try to create let me try to create a method here also okay just let me try to create a method void void method two like this now system.out.println here I'll be writing child class method and here I'll be writing instead of Class A I'll be writing parent class parent class method okay this is parent class method and this is child class method okay okay right right now let us check with our points what is the first point guys first point first point first point first point is we can hold parent class object with parent class reference parent class object let me just try to write it here like this first point let me write it here like this okay this is the first point parent class object with parent class reference and with that reference with that reference we can call only parent class methods if you are trying to call avobj Dot method to we will be getting an compile time error we will be getting a compile time error now guys kindly please do remember in order to perform this first point in order to perform this first point no need to use inheritance no need to use inheritance okay this is actually has a relation this is actually has a relation am I right or wrong no need to use inheritance even if you are not writing extends keyword also nothing will happen here you will be getting a compiled camera okay okay now system.out.indlm just let me try to go with the second point all right tell me guys what is the second point what is the second point second Point means we can hold child class object child class object with a parent class reference okay what is my child class object this is my child class okay let me try to create a checklist object new class B chill class object hold it with parent class reference a obj2 parent class reference now with the help of that aov J2 with the help of that aob J2 okay I'll do one thing a obj2 DOT method one and aob J2 dot method two okay line number 17 and line number 18. in which line I may get an error or both lines are correct tell me the line number tell me the line number which lines I'll be getting an error are both the lines will be correct right 99 of the people are saying that line number 18 will be getting an error only one or two persons are saying that uh both are correct those are correct okay I understand understand not only trouble now guys again please read the point slowly we can hold we can hold okay just let me try to get it like this right now point here okay we can hold child class object child class object with parent class reference okay that is valid and with that reference with that reference we can call only parent class methods method one is parent class and Method two is Chile class now tell me line number 17 or line number 18.
where I'll be getting an error in line number 18 I should be getting an error please observe here did you understand guys please tell me guys please tell me is it clear is it clear so here we will be getting an compile time error sir then what is the difference between point number one and point number two first point also first point also we are able to call only parent class methods second point also we are able to call only parent class methods what is the difference guys this second Point second point I want you to please remember this second point we will be able to understand this second Point whenever we are dealing with polymorphism polymorphism okay at the time of polymorphism I am going to ask you this second point could you please remember this point up to that time please please okay right right now now here guys in class B right now in class B answer my question correctly think an answer think and answer okay let us think I'm keeping these two in comment in class B if I remove this extends Class A if I remove this extends Class A in line number 11 and line number 16 at which line I will be getting an error at which line I will be getting an error exactly exactly line number 16 srikant what you are doing she can't what is happening buddy you need to listen you need to listen clearly where are you srikanth Suresh come on guys I'm expecting more I'm expecting more if I keep this in comment obviously I'll be getting an error in line number 16.
this is inheritance yes or no guys this is has a relationship you'll not be having any trouble there okay kindly please do remember the better Point okay now now next Point okay if I execute my program right click run as Java application both parent class method here first method one parent class method after that small line after that parent class method okay now let me go for the third Point guys what is my third point what is the third point is this the third point is the third point holding holding child class object with child class reference once again holding child class object with I mean terminology guys here guys in inheritance you need to remember the technology mark my words Mark literally please technology is very important again we are holding holding child class object with child class reference and with this reference with that reference ah we can call both parenting child class methods let us check let us check this is method foreign class method and b o b j dot method two now this is child class method that's in practice now if I execute my program class method straight class method yes I hope you're understanding me is it clear guys for everyone is it clear now finally finally for the last Point fourth Point fourth Point what is my fourth Point sir uh we cannot hold we cannot hold pair and class object with child class reference okay guys can you please give me the code for that please give me the code for that please just give me the code we cannot hold Mukesh very good here I'm impressed we cannot hold parent class object first right parent class object uh parent class object with child class reference okay uh class b b o b J2 like this like this no that is not valid we cannot control we cannot control parent class with child class reference no here this is invalid valid we will be getting an compile time error we will be getting a compiled camera guys is it clear guys for everyone right right right so this is compile time error now you may have a small doubt sir what happens if class a method name and Class B method name are same guys that is a concept of polymorphism kindly please wait for that kindly please wait for that okay now you may ask me sir can I call can I call change the class methods from parent class can I call child class methods from parent class did I told that we can call did I give any point here did I give any point here no guys no that is not possible that is not possible are you understanding me guys all these points I have given all these points keeping in mind that you should be using these in the child class am I clear with this am I clear with this Guys these four points literally they will roll oops features literally seriously I'm saying you these four points if you remember these four points you can mastered like you can consider that use your master in oops Concepts I'm asking I'm saying only these four points please remember these four points okay guys can you do that for me guys please Suresh third point in the sense third Point means we can hold we can hold child class object with child class reference and with that reference we can call both parent class methods and child class methods let's bless this now guys do me a favor do me a favor please have this program for me before having this program I want you to guys before having this program I want you to please have this key points can you do that for me guys key points key points try to write them by your own please try to write them by your own guys okay Umesh we can do that we can do that no problem that's what I'm saying first point is as actually has a relation second Point involves inheritance but the difference between the first and second point we will be able to understand whenever we are dealing with polymorphism nagarjuna you need to wait for that okay please wait for that Guys these four points I'm requesting you please try to write these Four Points by your own if you are having any doubt then please check but don't copy paste here please please don't copy paste please I'll be waiting please inform me completely I'm not remembering your name here what is your name Jesus I think srikanth something what is your name write is your name so that I'll be able to remember your name and stop calling sleep yeah yeah give me your name give me your name I don't want to call you with machine names parvesh that's what I told you you cannot call child class methods in parent class no inheritance means everything whatever the points which you are discussing those points are related to Cherry class only okay parvish good good please please what do you mean by modification what do you mean by that modify means how what you want to modify yeah obviously they will affect obviously they will affect foreign guys foreign foreign which variable should I take for add employee which variable take string buddy hey I understand take string because please write it by your own please write it by your own foreign holding objects means we are pointing our reference to that object that's it okay Ganesh holding means nothing but we are pointing yes yeah parvish I want you to go only with the key points please try to like write the key points by your own I'm requesting you literally I'm requesting you please try to write it by your own one more minute one more minute foreign foreign foreign foreign guys I hope it's completed is it done is it done okay okay I'll upload I'll upload parvish I'll upload no issues no I'm asking you to write this points because I just want you guys to remember that's it okay now guys please go with the code for me please please go with the code please go with the code foreign Class B Class B please let's just first write it first write it I'll let you know I'll let you know please write please write Abhijit you can't see the screen can you see the screen object guys can you see the screen please check your internet connection buddy please check your internet connection you need to respond you need to respond can you see the screen or else if you're having any trouble please do let me know buddy now is fine yeah fantastic prediction just very good very good guys please inform me please complete it is it done no okay okay I don't know I I mean Jesus I'm asking you what is your name you are not saying your name give me your name but I want to address with your name foreign okay all right okay guys I hope it's completed uh Ravi you're asking sir any holiday on 18th or 19th March nope okay all right all right guys all right all right right I'm removing this I'm removing this okay done done okay right now guys please observe here actually when you are speaking about inheritance when you are speaking about inheritance there are different types of inheritance are there okay there are different types of inheritance are there those are those are single inheritance Point number one first one is single s i n g l e single inheritance multi-level inheritance multi-level inheritance and hierarchical inheritance hierarchical inheritance in Java there are three types of inheritance are there single inheritance single inheritance multi-level inheritance and hierarchical inheritance like this hierarchical inheritance okay now now guys Java does not support Java does not support multiple inheritance Java does not support multiple inheritance now what is actually this single inheritance what is actually this multi-level inheritance and hierarchical inheritance let us try to understand that now guys single inheritance means single inheritance means there will be only one level of inheritance there will be only one level means child class and parent class that's it child class and parent class that's it not more than that once again I'm saying you once again I am saying you single inheritance means there will be only one level of inheritance every Java class every Java class by default exhibits single inheritance do you know why do you know why guys for example right now this class A it is exhibiting single inheritance Krishna very good that is exhibiting singular evidence yeah how how why exactly guys for every Java class one class acts as a parent class what is that what is that object class object class right uh for example for example let me try to have a main method now inside my main method inside my main method I am trying to create an object new class A okay new class A let me try to have a reference equal to aobj belongs to class A like that now here let me try to have a method void method one void method one like this and system dot out dot println simply I am writing class a method okay now now a obj DOT method one okay that is very good that is fine no problem I will be getting the output as class a method now B J dot hash code now this method belongs to each class that method belongs to each class object class are you understanding me guys now Class A is having only one level of inheritance what do you mean by one level single level what do you mean by single level one child class one parent class that's it that's it not more than that are you getting me guys guys please help me out please help me out one child class one parent class that is known as single inheritance single inheritance okay we'll do one thing we'll do one thing let us try to perform single inheritance in the form of classes what do you say classes classes okay I'm having Class A I'm having Class B okay now here let me try to have one more method void method two void method two I want to make this as public pubic public and here also I'll be making them as public uh p u b lse public like this okay now Class A Class A Class B right okay now here I am writing system dot outdoor println this is Class B method okay now main method inside my main method I'll be trying to create an object here new Class B a new class b equal to b o b j belongs to class B like this now b o b j dot method one and b o b j dot method two this is single inheritance are you understanding me guys only one level of inheritance now let us try to have an idea about multi-level inheritance multi-level inheritance multi-learn inheritance okay now guys I want to inherit I want to inherit Class B in class X okay guys Class B in class X right e x t e n d s extends class class B can you tell me why I am getting an error can you tell me why I am getting an error exactly exactly both are present in two different packages so we need to import that okay guys okay sorry okay let me try to import import import uh com dot pack one daughter Class B okay I have imported fine fine very good very good now now let me try to have one more method void method three void method three system dot out Dot println and here this is this is class X method m-u-t-h-o-d class X method like that okay now let me write you have my main method inside my main method I'm trying to create an object okay new class X class X obj belongs to class X right right guys this is important I need your help I need your help this is important I am trying to write three cases first one is x o b j dot method three method three second one is x obj dot method two third one is x obj dot method one now line number 14 15 16 all are in comment at which line I will be getting an error line number 14 or line number 15 or line number 16 at which line I'll be getting an error or do you think that all are correct what is your opinion okay go ahead go ahead right right right so some people are saying line number 15 we will be getting an error some people are saying line number 16 some people say line number 14 I how we will be getting an error in line number 14 here I will be getting an error method three this method 3 belongs to class X yeah we are trying to call that with the help of X obj why are we getting another no here will not be getting any error right click run as Java application class X method right now let me try to go with method two right am I getting any error no sir actually this is parent class this is parent class right parent classify no problem okay let us execute right click run as Java application Class B method now are we getting any error here guys exactly we are not having any error right click run as Java application class EA method this is known as this is known as multi-level inheritance what is this guys what is this multi-level inheritance multi-level inheritance means multi-level inheritance means child class object child class object should be able to access grandparent class method child class object should be able to access grandparent class method what are you understanding me here guys guys method two is a parent class method but method one is a grandparent class method so why it is grandparent because Class A acts as a parent for class B and Class B acts as a parent for class X simple relation guys are you understanding me yes or no yes this is multi-level inheritance okay now tell me single inheritance means single inheritance means only one level single level one parent one child multi-level inheritance means a child class should be able to access grandparent class method grandparent class budget now hierarchical inheritance guys tell me one thing here tell me one thing can I inherit Class A in class B yes or no just say yes or no just say yes or no class A into class B yes okay okay can I inherit Class A in class X also yeah why not I can do that I can do that right a single class if you are able to if you are trying to inherit a single class in multiple classes multiple classes that is nothing but hierarchical inheritance okay please have this program for me I mean this is multi-level multi-level narratives please have this program for me guys please hierarchical inheritance means a single class should be able to we should be able to inherit in any number of classes for example okay Class A we are inheriting in class B can we inherit Class A in class X also pranita yes can we inherit Class A in some other classes yeah we can do that means a single class we are able to inherit in any number of classes Asos what is multi Asus I will not answer your question until you say your name here no I don't want to like I want your name what is your name tell me that is such a nice name why you are trying to give your name as Jesus just a minute wait okay pratiksha very good I have changed the name to pratiksha very good Mark pratiksha don't forget don't forget from Tomorrow onwards don't forget okay I don't want to call with machine names pratiksha such a nice name right now multi-level inheritance means multi-level inheritance means a single class means child class should be able to access grandparent class methods that's it that is hundred percent correct one child class multiple parent class okay foreign I don't understand your question buddy guys classic completed Class A completed this class B this is Class B rather uh guys rather is asking me a question so if we can't define as public then we can't access grandparent class obviously obviously rather I mean we are access modifiers what is the main use of access modifieds they provide access restrictions am I right exactly now Puja wait for the topic wait for the topic why like multi-level inheritance is not supported like sorry PSI Kumar Psy Kumar please wait for the topic tomorrow we are going to discuss that why multi-lovelyn like I want to discuss it right now but uh it is the time will not be sufficient okay Psy is it okay fine like wait for it srinivas ready wait for it wait for it now I did not discuss anything about multiple inheritance right wait for it wait for it all right guys is it completed is it completed guys yes it's done it's done no okay okay okay okay okay please write please write Umesh yes we can do that according to your requirements we can do that Umesh thank you Ganesh I'll let you know buddy I'll let you know I'll have a word like regarding those interview process uh Ganesh it's not like one minute or two minutes okay please wait for it please wait for it I'll speak after completing boobs Concepts Ganesh regarding how to get the interview calls how to prepare their resume please wait for it right that does not matter here okay does not matter but if you insist nearly 200.
okay okay guys I hope it's completed I hope it's completed Krishna a lot of books are there a lot of books are there my advice black book would be great a lot of books are there Krishna all books are good buddy all books trust me when I say that but okay I'll do that okay all right guys all right all right so guys that's it that's it for today and guys uh actually I forgot to tell you so a lot of students uh requested me to create like a social media so that social media like platform so that it would be great to have an interaction so I have created this install I had created this insta today only like uh you can follow it okay guys you can follow this asthma and this is Instagram like if you want to follow you need to have it okay and uh the ID Name ID name yes you already know ID name it's always always Java is awesome guys literally I cannot think of any better uh ID name what do you say is it fine is it okay yeah this is our logo right okay update Java is awesome this is the insta ID you can uh follow me there already some 288 some students are already been following so you'll be having that number 288 you can go with that upload your pick uh I'll upload that I'll upload that right for it like as of now you'll be having only Java logo and my name will be there my name will be there okay and like below that logo my name will be there no no not that not that shrikanth not that he I should be showing you that idea also like image also just a second let me open that there is uh one more I mean some students have already created some website like some ID it's like my like Java is awesome they had kept something like core Java but uh not that not that I requested them to react with that account like this is the ID which you will be having that this is the ID guys this is the ID I mean image this is the image which you will be seeing in the insta okay right right so I'll be trying to every day like after one or two days after one or two days after this week most probably after this week uh I'll be trying to every day upload one question in our Instagram okay just please check I'll start with easy questions I'll start with easy questions so try to check whether you are able to answer that question or not if you are unable to answer that learn that learn that please okay guys all right all right so that's it guys that's it for today that's it for today we'll be trying to continue your sessions again bye tomorrow have a great day guys have a great day we'll be trying to continue our session again by tomorrow good night good night everyone
Related Videos
Agentforce NOW AMA: Build with React and Salesforce Multi-Framework
SalesforceDevs
490 views•2026-05-28
How agent o11y differs from traditional o11y — Phil Hetzel, Braintrust
aiDotEngineer
450 views•2026-05-28
WEB TECHNOLOGIES UNIT-2 | Degree 4th sem BCOM Computers web technologies unit-2 full explanation💯✅
LearnwithSahera
1K views•2026-05-29
More tests are always better? How to use AI to identify tests that bring little value
Alliance4Qualification
335 views•2026-05-29
Search Algorithms Explained in 60 Seconds! 🤖💨
samarthtuliofficial
218 views•2026-06-01
People of Game of Thrones using JavaScript DOM
AltCampus
296 views•2026-05-30
Introduction to Problem Solving Part - 1 | Lecture 1 | Intermediate DSA
ascensionix
107 views•2026-05-29
So What's Odin Lang Even Good For
TechOverTea
131 views•2026-06-01











