1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    1
    Vote Rating
    0
    Richa Garg is on a distinguished road

      0  

    Default Unanswered: Overring method of base class with subclass in Extjs4.1

    Unanswered: Overring method of base class with subclass in Extjs4.1


    There is Class A ( base class) and Class B( sub class) and function A().

    Function A() is in both Class A and Class B.
    Class B extend Class A.
    When we call function A() in Class A , it will go to function A() in Class B and execute it.

    In Sencha Docs , its given that for this we need to add attribute 'override':'Class A' in Class B which will execute the function A() in subClass Class B.

    Since we need to extend Class A in Class B we cannot override Class A in Class B . So is there any other way to implement this functionality.

  2. #2
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    44
    Vote Rating
    2
    Answers
    6
    sriram139 is on a distinguished road

      0  

Thread Participants: 1

Tags for this Thread