53 Java Super Keyword Example Calling Superclass Constructors Part 2 |

preview_player
Показать описание
"Learn How To Design + Code A Complete App From Scratch To Playstore"
-~-~~-~~~-~~-~-

This Java Tutorial video talks shows an example of calling super class constructor using the super keyword in Java and it also shows what happens if the super class has no default constructors

OUR WEBSITE

OUR SOCIAL LINKS
Follow us on
Рекомендации по теме
Комментарии
Автор

wow you are an amazing teacher. I have gone over this countless times in class and readings and hardly got it till watching this.

bennyburwell
Автор

Thank you! The part 1 helped a lot to understand part 2!

jacobjulag-ay
Автор

You have explained everything precisely.thank you

samradnyisarade
Автор

it is the best video about Superclass Constructors. thank you for sharing

nebilgokdemir
Автор

Thanks a lot...these videos help me a lot...please upload

anam
Автор

You are awesome. Thumbs upped. Subscribed Thank you

moocy_
Автор

great job!   saved me a lot of time.  thanks

lamarts
Автор

does it matter if the supper constructor statement line for class B is written before, after or in the middle of the the other statement? or as long as it is called any where in the B constructor block. thx;)

phddas
Автор

Hi Viviz, you have been really great in explaining all the topics and they have been really helpful for me to refresh.
I have a question in this video
Question: The Variables, methods of class A are full available for class B when we extend the class. Those variables and methods are even accessible in class B constructor to play around. But in this video you were saying that class B does not know to initialize the variable of class A, is this a standard practice not to use super class variables or methods directly in class B? or am I missing something

My understanding: The Variables, methods of class A are full available for class B when we extend the class. Those variables and methods are even accessible in class B constructor to play around. The only thing that is not available is super class constructors or if we have same variable name in the child class as super class. To differentiate parent and child variable we use "super" key word.

Please advise if my understanding or question make sense

Thanks
Bhanu

bhanupothakamuri
Автор

the part of super(0); is not working after removing A's 1st constructor.
It gave me error :
Syntax error on token "{", { expected after this token
breakpoint:B

please Vivz help as usual :)

aboelsqaseq
Автор

super and this, both should be the first statements we use both of them simultaneously
Then which one will execute first & why?
If not ...why?

raakesh
Автор

I spent hours on end trying to make super constructors work after learning it years ago.

I finally found out what was causing the problem. All this time I couldn't get it to work because I put "void" on the constructor.

Class Car {
public *void* Car(int this, String that) {
// Do This
// And That
}
}
Class Bike extends Car {
public *void* Bike() {
super(100, fast);
}
}

I guess adding void turns it into a method rather than a constructor

josephkreifelsii
Автор

Waiting next video of Java OOP and Android.

devendrapoudel
Автор

Y speaking so fast...
Please Explain it slowly we will get it better.

nilimadhok
Автор

Please show us a way to install Mac OS on Windows, eager to develop iOS applications thanks 

ozmd
Автор

their is a mistake in the last program

subhambiswas
Автор

237 FREE Java slides!!!
These slides teach you everything you need to get started with Java programming. I will be adding a PART 3 in addition to the two parts that will cover more complex topics. I was so excited with these that I couldn't wait to upload it ASAP!

slidenerd