×

Replaceable classes and virtual constructors for object-oriented programming languages

  • US 6,895,581 B1
  • Filed: 03/30/2000
  • Issued: 05/17/2005
  • Est. Priority Date: 03/30/2000
  • Status: Expired due to Term
First Claim
Patent Images

1. A method of constructing a computer program developed with an object-oriented programming language, the method comprising:

  • declaring a base class as replaceable in a first source file;

    invoking, in the first source file, an operator to create an object of the base class;

    compiling the first source file into a first module, including emitting an instruction to create an object of the base class in response to the invoking of the operator to create in the first source file;

    defining a replacement class inheriting from the base class in a second source file;

    instructing in the second source file to replace the base class with the replacement class to cause creation of an object of the replacement class when the instruction in the first module to create an object of the base class is executed during program execution, the program execution occurring after the compiling of the first source file, the creation of the object of the replacement class occurring without recompiling the first source file;

    compiling the second source file into a second module; and

    combining the first and second modules in an executable program.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×