Skip to content

Instantly share code, notes, and snippets.

@barisuyar
Last active December 23, 2020 19:16
Show Gist options
  • Save barisuyar/3769717a8594bde0afba77229689921c to your computer and use it in GitHub Desktop.
Save barisuyar/3769717a8594bde0afba77229689921c to your computer and use it in GitHub Desktop.
Buyar
public class FirstClass {
fileprivate func someMethod() {}
}
internal class BusinessClass: FirstClass {
override internal func someMethod() {}
}
private class Tax {
}
public var tax = Tax()
struct Tax {
var income: Double
private(set) var exactTax: Double
var ratio: Double {
didSet {
exactTax = (income / 100) * ratio
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment