Header Ads

OBJECTIVE C -INTRODUCTION

OVERVIEW OBECTIVE-C:-

Objective-c is general purpose language that is developed on top of C programming language by adding features of small Talk programming language making it an object-oriented language.It is primarily used in developing IOS and Mac OS X operating system as well as its application.
Intiallly, Objective-c was developed by NeXTSTEP OS from whom it was taken over by Apple for its IOS and Mac OS X.

Object-Oriented Programming
Fully supports object oriented programming,including the four pillars of object-oriented development:

  • Encapsulation
  • Data Hiding
  • Inheritance
  • Polymorphism
EXAMPLE
#import \
 int main(int argc,const char * argv[])
 {
  NSAutoreleasePool * pool = [[NSAutoreleasePool alloc]init];
  NSLog(@"hello world");
  [pool drain];
  return 0;
 }
 
Foundation Framework

Foundation Framework provides large set of features and they are listed below:-

  • It include a list of extentded datatype like NSArray,NSDictionary,NSSet and so on.
  • It consist of a rich set of functions manipulation files, strings, etc.
  • It provides freatures for URL handling,utilities like date formatting ,data handling ,error handling etc.

Learning Objective-C
The most important thing to do when learning objective c is to focus on concepts and not get lost in language technical details.
The purpose of learning a programming language is to become a better programmer,that is ,to become more effective at designing and implementing new systems and at maintain old ones.

Use of Objective-C
Objective -c as mentioned earlier,is used in IOS and Mac OS X. It has large base of IOS users and largely increasing Mac OS X users. And since Apple focuses on quality first and its wonderful those who started learning Objective c.

No comments:

Powered by Blogger.