Please provide an easy-to-understand explanation. Does "subclassing" mean creating a class that is a subclass of another class?
Please provide an easy-to-understand explanation. Does "subclassing" mean creating a class that is a subclass of another class?
@interface [b]subclassname[/b] : [b]classname[/b] {
// instance variables that [b]subclassname[/b] has but [b]classname[/b] lacks go here
}
// methods that [b]subclassname[/b] has and [b]classname[/b] may or may not go here. If both have it, [b]subclassname[/b]'s implementation override's [b]classname[/b]'s so long as an instance of [b]subclassname[/b] is references.
@end
[super [b]methodname[/b]];