Encoding Decoding, Memory Management

struct Employee: Codable{
let name: String
let id: Int
var favoriteToy: Toy?
}
struct Toy: Codable{
let name: String
}
let toy = Toy(name: "Simple Toy")
let employee = Employee(name: "RX", id…

Generic, Access Modifiers, Custom operator, Subscript and Keypath

class Cat{
var name: String
init(name: String) {
self.name = name
}
}
class Dog{
var name: String
init(name: String) {
self.name = name
}
}
class Keeper<Animal>{
var name: String
var inMorning: Animal
var inNoon: Animal
init(name: String, morningCare: Animal, afternoonCare…

Building Your Own Types(structures, classes, enumerations and protocols)

Rejaul Hasan

I work as a Sr. software engineer for iOS platform. Available to discuss about any good opportunities or projects.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store