This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
HelloWorld/Obj-J/helloworld.j
2021-03-26 13:45:08 +05:30

31 lines
No EOL
418 B
Text

{
CPString name;
CPString city;
}
- (id)initWithName:(CPString)aName city:(CPString)aCity
{
self = [super init];
name = aName;
city = aCity;
return self;
}
- (void)setName:(CPString)aName
{
name = aName;
}
- (CPString)name
{
return name;
}
+ (id)newAddressWithName:(CPString)aName city:(CPString)aCity
{
return [[self alloc] initWithName:aName city:aCity];
}
@end