8.4 Inheritance Example in Java Single Level

  Рет қаралды 119,807

Telusko

Telusko

Күн бұрын

Пікірлер: 30
@khushbumodh8655
@khushbumodh8655 8 жыл бұрын
sir i want to learn a java database connectivity with oracle create video plz
@aravindr2839
@aravindr2839 7 жыл бұрын
Did you get any video now about JDBC Ms.Khushbu Modh
@NiteshKumar-vk9td
@NiteshKumar-vk9td 7 жыл бұрын
which database are you use mysql or oracle
@bekkamsravanthi6128
@bekkamsravanthi6128 7 жыл бұрын
Thank u so much for sharing your knowledge and also am feeling aesthetic in learning java
@limsoyoun
@limsoyoun 9 жыл бұрын
Thank you for the sharing your knowledge! Is there a puppy in your house? I heard the sound though! That's make me funny. Concept of Java became more easier and SIMPLE! because of your lecture.
@shuvshaw9594
@shuvshaw9594 4 жыл бұрын
package javaapplication132; /* SINGLE LEVEL INHERITANCE ILLUSTRATION */ public class JavaApplication132 { public static void main(String[] args) { difference obj = new difference(); // creating object of class addition obj.x=10; // assigning value of the integer obj.y=5; // assigning value of the integer obj.add(); // for addition obj.diff(); // for differnce } } class addition { int x,y, res; // declairing required variables public void add() // creating method add for the operation of addition { res= x+y; //addition operation System.out.println(res); //showing output } } class difference extends addition // now class difference is child class of additon class { public void diff() // creating method diff for the operation of difference { res=x-y; // difference operation System.out.println(res); // showing output } }
@hadiabdulaziz7651
@hadiabdulaziz7651 6 жыл бұрын
Hy Sir !Navin Reddy please can you create javaFX playlist tutorials because i do really understand your lectures.Thanks!!
@ranjan25k
@ranjan25k 3 жыл бұрын
Could you confirm whether encapsulation and inheritance would work together for variables. As in encapsulation you would declare variables as private and add a setter and getter method. Whereas in inheritance only non-private variables are inherited into the child class. Let me know if there is a way out.
@sudhu7938
@sudhu7938 6 жыл бұрын
As u said.. If we cant use previous code how can we use the previous variables in the new class AddSub?
@MaiishaS
@MaiishaS 6 жыл бұрын
" we don't have no garbage value like in c programming " LOOOl java is king
@nithyashreenaidu8357
@nithyashreenaidu8357 4 жыл бұрын
why didnt you initialise result =0 addsub
@pradeepgodavarthi8313
@pradeepgodavarthi8313 7 жыл бұрын
if method name in super class and derived class are same and they are in relationship, what happens if we call that same named method ....which method ll get called ?
@mohammedviso2269
@mohammedviso2269 7 жыл бұрын
Thanks
@AnilKumar-bx1nl
@AnilKumar-bx1nl 6 жыл бұрын
If possible could you please do video tutorials on Angular and Angular JS?
@sanisan5787
@sanisan5787 4 жыл бұрын
I didn't understand anything
@bossysmaxx3327
@bossysmaxx3327 5 жыл бұрын
num one and num thoo he's my ni**a
@dipakpatilkhede6817
@dipakpatilkhede6817 8 жыл бұрын
it is possible in java inheritance classA { } class B{} class C exteds A,B{}
@evolocity5
@evolocity5 7 жыл бұрын
no. multiple level is not possible
@binarytemple
@binarytemple 6 жыл бұрын
As far as I know not, because Java doesnt support multiple inheritance
@shwethasingasani3866
@shwethasingasani3866 5 жыл бұрын
Very clear explanation. Thank you. Please do some Videos covering Computer Science Concepts for people who want to get into software but don't have a CS degree. Cheers!! :)
@AviatorBro
@AviatorBro 6 жыл бұрын
does derived class has access to private variables from base class? if not then how can we do so?
@daminiyeole104
@daminiyeole104 6 жыл бұрын
Why hasnt he used concept of encapsulation here¿ for n1 and n2 Previously he had said we need to use getter setter to set values
@shuvshaw9594
@shuvshaw9594 4 жыл бұрын
very helpful
@meenakshilokhande1
@meenakshilokhande1 7 жыл бұрын
thank you so much sir....
@rajulama9732
@rajulama9732 9 жыл бұрын
you are superb........
@harrychecker5509
@harrychecker5509 9 жыл бұрын
Excellent video..
@syedshanawaz9149
@syedshanawaz9149 9 жыл бұрын
THANKS A LOTTTTTT
@daakshayaniallu2277
@daakshayaniallu2277 8 жыл бұрын
can we initialise values num1&num2 in add class
@daminiyeole104
@daminiyeole104 6 жыл бұрын
Daakshayani Allu Why hasnt he used concept of encapsulation here¿ for n1 and n2 Previously he had said we need to use getter setter to set values
8.5 Inheritance Example in Java Multi Level
3:38
Telusko
Рет қаралды 97 М.
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 3 МЛН
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 25 МЛН
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 26 МЛН
Inheritance in JavaScript - Prototypal Inheritance tutorial
20:06
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 747 М.
Python Classes and Objects - OOP for Beginners
8:01
Python Simplified
Рет қаралды 555 М.
Java inheritance 👪
6:11
Bro Code
Рет қаралды 269 М.
8.6 Object Creation in Inheritance | Constructor | Super
6:07
#51 This and Super Method in Java
12:11
Telusko
Рет қаралды 112 М.
Java polymorphism 🏁
6:12
Bro Code
Рет қаралды 121 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
8.20 What is Interface in java with example
8:00
Telusko
Рет қаралды 171 М.
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 3 МЛН