Hi everybody.
Welcome back.
In this video we will discuss Object Oriented Programming.
Overriding overriding and by phone or in a subclass contains a missile that overrides a method of the
sub superclass of the superclass.
You can also call the superclass missile by calling sober or member entities subclass and self global
entities method instead of self what methods let's open our job it are not but I suppose we have a class
called a class called the skills
class
in common guess
the f we will define the n it missile through failed class to the enlightened self yes.
It underscored in its double Huntress called
some
of us
f we have another meso goal and s ze refer to message have the same and extend self and well but in
a specific message as follows.
Yeah m s g
then
so you have the shares
shift and into
f we want to overwrite this message we will use overwriting in another class called plus H R plus
H R Yes
underscored that
self column enter super
age
and self
double underscore and it double underscore.
Enter
you have
an edgy self.
Good luck.
Another time you don't have the skills needed.
So we have update this uh define missile.
M as G from so you have the skills to good luck another time you don't have the skills needed.
If we have an object called communication equipment.
That's
shift and enter.
So communication
not m as G shift and enter.
Good luck.
And as a time you don't have the skills needed but when we call when we call M S G defined missile.
Throw the object communication it will brand the last message overriding the first message.
Thank you for watching.
See you next election.