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
1answer
150 views

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 ...
2
votes
1answer
402 views

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 ...