Compile Time Type vs Runtime Type

preview_player
Показать описание
During compile time, the compiler makes a static analysis (fancy word for compile-time analysis) of a variable's declared type. At runtime, an actual instance is created and assigned to the variable (hence, runtime). See the difference in this video.
Рекомендации по теме
Комментарии
Автор

I don't even write C++, I write nim code and yet your video was a beautiful and simple example to elaborate on the two. Thank you very much for making this!

isofruitfruit
Автор

I like the way you playfully explained.

sriharshacv
Автор

In short, the code specified before the assignment operator turns out to be a compile time code/executed at compile-time, while the code after assignment operator is executed at runtime.

rahulsoni-lxrb
Автор

6:45 "LOOK AT tHAT LOOK AT THAT !" 😂😂😂😂😂😂😂

exoticcoder
Автор

Great explanation, it really clears up the concepts well!

puppetmaster
Автор

I have been learning Java and I wanted to know what the difference between runtime and compile time. I am so glad I found your video. I WISH my instructor was as good at explaining things as you are. Subscribed from both of my channels to show support. 😊 I am sure I will be learning c ++ in the future so it's nice to know where to go.

JoyDavidson
Автор

I watched the video before I scrolled down, then I saw your picture. YOU ARE EX\ACTLY HOW I IMANGINED U LOOK ALIKE lol

engkortheng
Автор

This is very interesting and helped me understand an error I got. I've been searching but I can't find where I can read more about this. Can you point me out to some resources? Thanks!

stephaniech.
Автор

best explanation of runtime vs compiltime

Ankhar
Автор

Good. Thank you. Totally get it. :)
I forget these concepts aren't that hard to understand, it's that there's so many developers that like fancify/complicate things to make themselves look smart. >:P

chipchipchuree
Автор

Now this video has rather a lot of views compared to many others that are just about as good. Is it pure Search Engine Luck or did someone or something link to this??

jvsnyc
Автор

How come you were able to create a class Animal and Dog without the semicolon at the end.

brod
Автор

Is that Java right? If not does that apply in Java . I mean objects are created at run time by JVM right

georgekutubidze
Автор

If the only statement was
 Dog d = new Animal();

you still get the "Explicit conversion" error. So isn't the compiler able to analyze the code on the right even though it's not executed until runtime?

wonbyte
Автор

Get a good microphone, this one hurts the ears, other than that, it was a good lecture.

dareakintade
Автор

lolol at first i thought it said are you missing a cat hahahaha

unscripted