Skip to content

Instantly share code, notes, and snippets.

@YKV
Created June 29, 2016 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YKV/e76d207749e2bd3cc5cfcb437b4e04ea to your computer and use it in GitHub Desktop.
Save YKV/e76d207749e2bd3cc5cfcb437b4e04ea to your computer and use it in GitHub Desktop.
Q1
What is it mean when you say a language is object-oriented and why could it be considered an improvement over a procedural language?
Object oriented language means that all actions that people do can be explain besed on any object like human.
Human has head, arms, leags which are our features(tools) and can walk, eat, listen which our actions. Procedural language can be described as promitive and basics.
Q2
What are structures and why are they useful?
Structures helps to keep data elements in specific schema, in this case we won't mix them up. Every data will have specific type and will belong to to specific entity.
Q3
What is the difference between an instance method and a class method and how do you differiate the two?
Instance method use an instance of the class, when the class method use a class name.
+(void) myClass;
-(void) instanceMethod;
[TestClass myClass];
TestClass *object = [[TestClass alloc]init];
[object instanceMethod];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment