Creating a simple class in Objective-C @techytube
Creating a simple class in Objective-C  @techytube
Uploaded September 2012 | Updated September 2026, 2 weeks ago
For more videos on technology, visit Techytube.com

By Pavel@Techytube

Objective-C provides many pre-defined classes to us. But sometimes we
need our own classes.

Every class has 2 files: a "ClassName.h" file and "ClassName.m" file.
The first one is called the interface or the declaration file, and the
other one is named the implementation or the definition file. In the
.h file we declare what our class IS, and what it DOES, and in the .m
file we specify HOW the class does those specific functionality.

Classes can have member variables and public methods. Member variables
are declared inside the interface files between curly braces. The
public methods are declared in the interface file, after the closing
curly brace, and implemented in the implementation file.

Usually, for every member variable there are 2 methods: a getter and a setter.
Creating a simple class in Objective-CWindows 8 Development - Navigating Between Pages XAMLWindows 8 - Windows update and updating store appsBlocks in Objective-CWindows 8 Development - Saving Session StateWindows 8 User Interface OverviewWindows 8 Development - Edit Static Text PropertyWindows 8 Development - XAML DefaultViewModel BindingWindows 8 Development - Data Binding Grid TitleManaging Service On Linux Server Part 1 Of 2ASP.NET Razor SyntaxWindows 8 Development - Javascript Life Cycle
techytube |

Creating a simple class in Objective-C

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER