Questions tagged [subclass]

A subclass, "derived class", heir class, or child class is a modular, derivative class that inherits one or more language entities from one or more other classes (called superclasses, base classes, or parent classes).

Filter by
Sorted by
Tagged with
3 votes
4 answers

What is the hierarchical structure of the ArcPy Geometry class?

I'm trying to learn about ArcPy's geometry class. From my limited experience, it seems like there is a hierarchical nature to the components of a geometry: import arcpy connection = "Database ...
User1974's user avatar
  • 1,132
3 votes
1 answer

Creating a subclass that inherits from an ArcPy superclass?

I would like to create a subclass that inherits methods from the arcpy Describe class, as in: import arcpy class my_sublass(arcpy.Describe): pass However, arcpy.Describe is a function (that ...
jesnes's user avatar
  • 423
2 votes
1 answer

What object argument to use in subclass definitionIn if subclassing ArcPy Spatial Reference class?

I want to do something like the following: class SubClassOfSpatialReference(arcpy_spatial_reference_object): def __init__(self, input_data): ... etc. Can I even do this and, if so, what is the ...
celticflute's user avatar
  • 1,632