This is some notes written by Sheldon. I mainly focused on iOS programming but I also do JAVA and C# backend, you can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
High order functions with lambda
is very easy in Swift
(see article Here) but not that easy in languages like Objective-C
or C++
. In JAVA
we can do it but since JAVA
has too many versions, there are a lot different ways to do it, and there is always a better one you can choose.
Assuming we have a class like:
class Student {
private int age;