ar.kalmykov created page: gcd and math authored by Artem Kalmykov's avatar Artem Kalmykov
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
https://www.tutorialspoint.com/objective_c/index.htm https://www.tutorialspoint.com/objective_c/index.htm
## You should do the following: ## You should do the following:
You should create an iOS application in Xcode, written in Objective-C. It should contain 2 classes: Organization and Employee, both of each are subclasses of NSObject. Organization should have the following properties: You should create an iOS application in Xcode, written in Objective-C. It should contain 2 classes: `Organization` and `Employee`, both of each are subclasses of `NSObject`. `Organization` should have the following properties:
* Public “name” of type `NSString`. * Public “name” of type `NSString`.
* Private “employees” of type `NSArray<Employee>`. * Private “employees” of type `NSArray<Employee>`.
...@@ -17,7 +17,7 @@ And the following methods: ...@@ -17,7 +17,7 @@ And the following methods:
* Public `employeesWithSalary:` method, which accepts one argument of type int - salary - and returns all employees with given salary as an array. * Public `employeesWithSalary:` method, which accepts one argument of type int - salary - and returns all employees with given salary as an array.
Employee should have the following properties: `Employee` should have the following properties:
* Private “firstName” and “lastName”, which are of type `NSString`. * Private “firstName” and “lastName”, which are of type `NSString`.
* Public “salary” of type `int`. * Public “salary” of type `int`.
... ...
......