Perl6 Object Oriented Cookbook (v0.2.1)  
Section 5: Constructors, Destructors, and Autochained Methods  
 
Recipe 5.6: Preventing a Superclass Initializer from Being Invoked
Last Updated: Sep 8, 2003
Status: Draft
      Previous Page   Next Page

How important is this problem to you?
  (Login to Vote)
3.00 Rating, 1 Vote  

How acceptable is the proposed solution?
  (Login to Vote)
0.00 Rating, 0 Votes  

Problem:  

You are creating a new subclass of an existing class. Your subclass, however, needs to perform initialization decidedly different from that assumed by the parent class. You want to "take over" the initialization from the parent class, such that the parent class initialization is not performed.

Solution:  

Discussion:

Issue: Dangerous.


Log In to Comment


Login / Edit User Info -- Copyright © 2002 Cognitivity -- Previous Page   Next Page