Multilevel Inheritance in Java | With Program Implementation | In Hindi
HTML-код
- Опубликовано: 21 дек 2024
- Multilevel Inheritance in Java | With Program Implementation | In Hindi | Tutorial#61
Hi All, Welcome all of you to the video series of Java Programming. Like C and Python, I will upload all the videos of Java from Basic to Advanced.
In this video, I have explained the Multilevel Inheritance in java. Inheritance is a way to use already written resources / codes instead of writing the code all over again.
Link to Previous Video: • Single Inheritance in ...
Link to next video: • Hierarchical Inheritan...
Facebook Group: / 21673. .
Instagram: / codeitupyt Facebook Group:
www.facebook.c... Facebook Page:
/ codeitup-104310264625489
Website: codeitup.in
Join this channel to get access to perks: / @codeitup
Tags Used:
introduction to inheritance in java
inheritance in java
types of inheritance
java inheritance
inheritance
multilevel inheritance in java
program implementation
inheritance in java hindi urdu
inheritance in java hindi
introduction of inheritance in java with example
what is inheritance in java
types of inheritance
types of inheritance in java
java inheritance explained
inheritance in java with example
java inheritance example
inheritance example
single inheritance
multilevel inheritance
hybrid inheritance
multiple inheritance
hierarchical inheritance
#codeitup
#java
#inheritance
Sir you are the best teacher har bar me java sikhne ki kosis karta hu fir har mann jata hu baki sab k videos me boring lagta hai par aap k video me sab kuch samaj aa rha hai thank you sir , sir please make serious on machine learning , love from Gujarat ❤️
hey akshit, mai bhi java sikh raha hu so kyun na hum dono ek sath mil k sikhen?? is se apko b faida hoga or muje bhi jo chij muje na smaz aye wo ap samza dena or jo apko na aye wo mai
Very well explained sir 👍
Thankyou Sir 🙏
this explanation is amazing 😊
Thanks you sir for all doubt clear about inheritance 🤗🤗🙏🙏
Most welcome😊
Sir apke bina coding impossible hai
🙂
btw love your python tutorials sir thank u for explaining so well sir
Thanks and welcome :)
Sir,
Object for base class can't be created??
Thank you 😌
🙂
Thank You Ji
Good Explain
Thanks & most welcome dear!
Demo class main D capital hoga ya small.
🎉🎉🎉🎉🎉🎉🎉
sir plz Hybrid inheritance par ek bna dijiye
🤞
🙂
sir can you make videos on generics and throw,catch and more,,,plz sir
Yes, after multithreading, next concept is Exception Handling.
@@codeitup Thank you very much sir
sir if we are providing constructors in each class then how it will work ??
❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
What if we create a variable by name "a" in class B then, how can we get the A class's a data?
Sir iss multi-level inheritance ki video me hum class A me addition aur class B me multiplication and class c me division ki process kar sakte hai ???
Yes
Sir inheritance ke program me hmesa .. cant find main(String []) error aata hai pls explain kr dijiye… ya koy bhai log ko pta hai to pls explain to me..
sir when u will cover interfaces,abstraction,encapsulation,?
Preparing the tutorial as per E Balaguruswamy's book "Java Premier". Step by step will upload all the videos very soon.
sir i write same code as it is but it take input a = 0 whyyyy please help me whyy 😭😭
Sir ek problem aya rahe hai , last vale add() funtion me compiler a and b not declare ka error de raha hai jab ke extend bhe ke hai previous class se..
Paste your code here Ankit. I will make the corrections.
Sir please give Practicle execution... Because when writing multiple classes in one program in bluej... Sir how to save that please tell...
In BlueJ you need to create class before writing the program. So, you class name will be the class in which main function exists.
@@codeitup Oki sir got it thax.... But waiting for ur Practicle execution of programs.
|plss read the full comment sir|
good morning/good afternoon/good evening sir jab bhi aap mera comment read kar rahe hai my name is aaditya and i am currently studying in class 12 and mere pass computer science subject hai jisme meri language "python" hai par mai apne career ko leke bahut confuse hoo......kyonki jab bhi me college me admission loonga to mujhe ek language select karni hogi or sab mujhe ye advise kar rahe hai ki aap "java" ko sabse pehli priority dena......kyonki sab yahi ke rahe hai ki "java is the pillar of the industries" and also u said...... to sir mai kaafi confuse ho chuka hoo kyonki java mere liye ek brand new language hogi and usse mai apne board exams ke baad hi start kar paoonga to kya mai java ke liye python chood doo???? ya python continue karoo?? ya python and java ek saath seekhu??? kisme jyada scope and demand hai ??pls help me sir and sorry ki comment kaafi lamba ho gya ho to.......
See Aaditya, agar aap python sikh lete ho to aapme programming logic develop ho jaegi jo baad me aapko java sikhne me madad karegi. Matlab ye ki python sikhne ke baad aap jab java sikhoge to aapko bahut aasani hogi kyoki har programming language me 30% chije same hoti hai. So, abhi aap aaram se python karo aur yahi python aapko java sikhne me aage madad karega.
import java.util.*;
class input_a {
int a;
public void aa() {
Scanner sc = new Scanner(System.in);
System.out.println("input a");
a = sc.nextInt();
}
}
class input_b extends input_a {
int b;
public void bb() {
Scanner sc = new Scanner(System.in);
System.out.println("input b");
b = sc.nextInt();
}
}
class result extends input_b {
public void print() {
System.out.println(a + b);
}
}
public class level {
public static void main(String[] args) {
input_a obj1 = new result();
input_b obj2 = new result();
result obj = new result();
obj1.aa();
obj2.bb();
obj.print();
}
} //mara is code ka out put 0 aa raha ha why?
same bro it take 0 in a but why i didn't understand
ooooooooooooooooooooooho
if any one can solve problem please reply
Help me sir !
Paste your code here Ankit. I will make the corrections.
@@codeitup ok sir i will paste soon..
@@codeitup import java.util.Scanner;
public class aaaa {
static void a()
{
System.out.println("Hello!");
}
}
class b extends aaaa
{
static void b()
{
System.out.println("\tMY");
}
}
class c extends b
{
static void add()
{
System.out.println("\tIS ANKIT");
}
}
class demo {
public static void main(String[] args)
{
c.add();
}
}