19
ObjectiveC with respect to C# and Java C# and Java Presented by Presented by Babul Mirdha

Objective-C with respect to C# and Java

Embed Size (px)

Citation preview

Page 1: Objective-C with respect to C# and Java

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

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

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

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

C++/C#/Java VS Objective‐C T i l C iTerminology Comparison

Page 6: Objective-C with respect to C# and Java

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

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
Page 9: Objective-C with respect to C# and Java

How to pass parameters to method.How to pass parameters to method.

Page 10: Objective-C with respect to C# and Java

Valid MathodValid Mathod

Page 11: Objective-C with respect to C# and Java

Properties

Page 12: Objective-C with respect to C# and Java

Strings

Page 13: Objective-C with respect to C# and Java

Immutable vs Mutable StringImmutable vs Mutable String

Page 14: Objective-C with respect to C# and Java

Interfaces and Protocols

Page 15: Objective-C with respect to C# and Java
Page 16: Objective-C with respect to C# and Java

Comments

Page 17: Objective-C with respect to C# and Java

DemoDemo

Hello World!

Page 18: Objective-C with respect to C# and Java

Q & A

Page 19: Objective-C with respect to C# and Java

Thank You All