Abstract methods/classes 1.1 Python script

SPONSORED LINKS

    Specification

  • Version: 1.1
  • File size: 0 KB
  • File name: index_txt
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Python
  • Price:Other Free / Open So
  • Company: Ivo Timmermans (View more)

Abstract methods/classes 1.1 script description:




Publisher review:
Abstract methods/classes script defines a class to create abstract methods. The point is that python doesn't have a notion of abstract methods.Abstract methods are part of a base class that defines an interface, without any code. Abstract methods can't be called directly, because they don't contain any code in their definition. In the definition of the base class, you may want to include a specific method that is part of the interface, but the specific implementation is still unknown. A popular example seems to be the drawing of a point or a line in a graphical application. The classes Point and Line share several implementation details, but differ on other. In particular, the way they are drawn is completely different (you will want to optimize the drawing of a line). Suppose these two classes are derived from the same class, Object.

It is possible to separate the implementation of the method draw of these two classes, while draw can still be called from the base class Object.
Abstract methods/classes 1.1 is a Python script for Programming Methods and Algorithms scripts design by Ivo Timmermans. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
defines a class to create abstract methods.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5