Heidi's rings in the heart once again in the previous videos we have covered almost all their topics
related to lambdas and high level functions.
So please check those out.
Now in this video we're going to check out the concept of Witan a play that is present in the Codlin
standard library so we're inside the intelligent ID.
I have a class of person with the property of name and each having some defined value.
Now down the side and having a method of start Tren So inside the main method I have simply created
the object of person given its own values and and ease as 23.
And simply printing out the values.
Now this is a normal way of initializing the objects right.
But if you notice here we are simply repeating the person dork name person our age again and again but
this is Cartland not Java.
We can make our code more cleaner.
So here again we can simply use lambdas to make our code look more cleaner and also reduce the redundancy
of the code.
So here I would simply use that keyword and as a parameter simply pass person object.
Now then I would simply define the lambda.
But I digress.
Gurly blaggard.
Open and close now.
Inside the lambda I will simply guard these two lines of code.
And pasted inside of it.
Statement.
But here we do not have to repeat the person object again and again.
They can simply use name equal to a string and equal to three.
Now if it in the code right now I will simply name a string and age as string theory.
So this keyword is actually the part of Cartland standard library nor Nordell Cartland language right
now.
Apart from that we also have the app like Word which is again the part of the Cartland standard library
not to use the app like word.
We have to use person Dorte apply and insert this.
Again we have to define our lambda right.
So here I will simply copy the code from here pasted here.
If you want you can get some different values and then if you run the code then this school will act
similar to discord but in case of a reply it actually returns a receiver not the receiver.
In our case is person and apart from this this play key word has the right to call these matters such
as start to then present inside the class of person.
So here if you want you can also use Daut keyword.
Then start Tren.
So after initializing the name estrogen and progesterone D-3 we can simply call this method of starter
Daryl simply execute this method and simply put in.
Now I am ready to run because all the values has already got initialized.
That is name as string and E-string it's free right but in case of Wicki word you cannot call the start
or end method.
It will show some error and or reference.
So this is the difference between the vid and like you were.
And again remember these two are again very important in terms of Android application development.
Now at last I would like to tell you that whatever chords that you saw in case of Landau's and high
level functions are just the basics and fundamentals the practical usage of Londres and high level functions
will check out in our upcoming more deals then we will talk about the collections in detail.
So as of now this much information is enough for this more detail.
Thanks for watching and have a good day.
This is showing are signing off.
Thank you.