Objective-C with respect to C# and Java
-
Upload
babul-mirdha -
Category
Education
-
view
1.909 -
download
3
Transcript of Objective-C with respect to C# and Java
![Page 1: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/1.jpg)
Objective‐C with respect to C# and JavaC# and Java
Presented byPresented by
Babul Mirdha
![Page 2: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/2.jpg)
Babul MirdhaFounder at
েসcা.Net (www.seccha.net)েসcা.Net (www.seccha.net)
Organizer atOrganizer at
iOS Developers MeetupHaving more than 5 years ofworking experiences with
Senior Software Engineer at
g piOS, Android, WindowsPhone, Web & Desktop(.Net) app development, Ihave worked with various
LeadSoft Bangladesh Limitedhave worked with variouslanguages, technologies &tools in differentenvironment.
![Page 3: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/3.jpg)
Overview
• Objective‐CObjective C– A thin layer on top of C and a strict superset of C;
b d l–Object‐Oriented Programming language–follows ANSI C style coding–that adds Smalltalk‐style messagingthat adds Smalltalk style messaging
![Page 4: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/4.jpg)
Dynamic LanguageDynamic Language
• There is no formal written standard– Relies mostly on libraries written by others
• Flexible almost everything is done at runtime• Flexible almost everything is done at runtime.– Dynamic Binding– Dynamic Typing– Dynamic Linking
• This allows for greater flexibility
• Minimizes RAM and CPU usage
![Page 5: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/5.jpg)
C++/C#/Java VS Objective‐C T i l C iTerminology Comparison
![Page 6: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/6.jpg)
Class DeclarationClass Declaration
.NET C# Objective‐C
cass AClass : Object{
@interface AClass : NSObject{
{int aValue;void doNothing();
int aValue;}‐ (void)doNothing();g()
String returnString();}
+ (NSString)returnString();
@end@
![Page 7: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/7.jpg)
Method Declaration
• Two type of Method:– Class Method– Instance method
• A class method – indicated by a plus (+) character. – associated with the class type.
• An instance method – indicated by a minus (‐) character– indicated by a minus (‐) character. – associated with an instance object associated with the class.
![Page 8: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/8.jpg)
![Page 9: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/9.jpg)
How to pass parameters to method.How to pass parameters to method.
![Page 10: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/10.jpg)
Valid MathodValid Mathod
![Page 11: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/11.jpg)
Properties
![Page 12: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/12.jpg)
Strings
![Page 13: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/13.jpg)
Immutable vs Mutable StringImmutable vs Mutable String
![Page 14: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/14.jpg)
Interfaces and Protocols
![Page 15: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/15.jpg)
![Page 16: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/16.jpg)
Comments
![Page 17: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/17.jpg)
DemoDemo
Hello World!
![Page 18: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/18.jpg)
Q & A
![Page 19: Objective-C with respect to C# and Java](https://reader034.fdocuments.net/reader034/viewer/2022042614/55620abad8b42af2128b485b/html5/thumbnails/19.jpg)
Thank You All