parameter passing - iphone pass values to the superclass from the subclass -


hi, want pass string value superclass subclass without using object. can please help. know has [self superview]. please help

 class c1 {    string s1   -(void) m1    {    } }  class c2 {     // here want call m1 , pass values s1      // without creating object of class c1  }  

they keyword communicate superclass super. can invoke methods on superclass this:

[super mymethod:someparameter]; 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -