liveBook · Manning

Superclass

Also called base class, parent class

A superclass is a class from which another class inherits members, structure, or behavior.

How 10 Manning books explain it

Python How-To

A superclass is a class whose attributes and behavior can be inherited by a more specialized subclass.

How it is used
Organizes shared data-model behavior into a superclass while allowing subclasses to specialize.
How deep it goes
Works through inheritance, overriding, name mangling, and single-inheritance method resolution; sets aside the more complicated multiple-inheritance order.
Examples
Uses employee and supervisor classes for inherited and overridden methods, and bill data classes for inherited fields.
What you can do after
Apply inheritance in Python to share methods, customize subclasses, and account for data-class field ordering.

Read how Python How-To explains superclass →

The Well-Grounded Rubyist, Fourth Edition

A superclass is the class from which another Ruby class inherits methods and other behavior.

How it is used
Uses the superclass relationship to share instance methods across related classes and model general-to-specific entities.
How deep it goes
Works through subclass syntax, inherited behavior, ancestry inspection, and design limits; extends method lookup to modules without detailing its full implementation.
Examples
Demonstrates Publication–Magazine–Ezine inheritance, `D.superclass` inspection, and an inherited module method.
What you can do after
Build it from scratch by declaring a subclass with `<`, checking its ancestry, and choosing modules when inheritance is unsuitable.

Read how The Well-Grounded Rubyist, Fourth Edition explains superclass →

Kotlin in Action, 2E

A base class is a class from which one or more subclasses inherit members and behavior.

How it is used
Guides controlled Kotlin inheritance and superclass-constructor initialization.
How deep it goes
Explains open and final inheritance rules plus primary and secondary constructor delegation paths.
Examples
Uses User and SocialUser, Button and RadioButton, RichButton and ThemedButton, and Downloader constructor paths.
What you can do after
Apply it via Kotlin inheritance syntax to control extension points and initialize an appropriate superclass constructor.

Read how Kotlin in Action, 2E explains superclass →

Python Workout, Second Edition

A parent class is a Python class from which a child class or subclass inherits attributes and behavior.

How it is used
Uses parent classes to share general behavior across related Python classes while allowing subclasses to add specialized functionality.
How deep it goes
Explains declaration, inherited attribute lookup, and initializer reuse with super(), but stops short of advanced inheritance variations.
Examples
Uses Foo and Bar, Person and Employee, and class families such as Vehicle, Car, Truck, and Bicycle.
What you can do after
Apply it via Python class syntax to reuse parent behavior, add subclass features, and delegate initialization with super().

Read how Python Workout, Second Edition explains superclass →

Object-Oriented Software Design in C++

A superclass is a class from which a subclass inherits state and behavior.

How it is used
Uses inheritance to share common state and behavior while supporting specialized subclasses and polymorphic behavior.
How deep it goes
Explains inheritance, access control, polymorphism, contracts, and template algorithms, but defers a complete treatment of implementation trade-offs.
Examples
Demonstrates Book, Attributes, Mammal, Human, Cat, Shipment, Expedited, and International class hierarchies.
What you can do after
Build it from scratch: define shared members, extend subclasses, override behavior, and use superclass pointers polymorphically.

Read how Object-Oriented Software Design in C++ explains superclass →

100 C++ Mistakes and How to Avoid Them

A base class is a C++ class from which another class inherits members and behavior.

How it is used
Uses superclass relationships to maintain inherited state and safe cleanup in polymorphic class hierarchies.
How deep it goes
Explains composite objects, assignment delegation, virtual destructors, and deletion consequences through contrasting C++ listings.
Examples
Demonstrates Person and Student assignment, plus Shape and Square deletion through a superclass pointer.
What you can do after
Apply inheritance safely by delegating superclass assignment and declaring virtual destructors for polymorphic superclasses.

Read how 100 C++ Mistakes and How to Avoid Them explains superclass →

The Quick Python Book, Fourth Edition

A base class is a class from which another class inherits attributes and behavior.

How it is used
Uses superclasses to share behavior among related Python classes and reduce repetitive code.
How deep it goes
Explains inheritance through method lookup, initialization, class-variable shadowing, and introspection with worked examples.
Examples
Demonstrates shapes and circles, inherited class-variable assignments, and HTML elements rendered through a shared superclass.
What you can do after
Apply inheritance in Python to share methods, initialize superclass state, and inspect class relationships.

Read how The Quick Python Book, Fourth Edition explains superclass →

Practices of the Python Pro

A superclass is a class from which another class derives structure and behavior through inheritance.

How it is used
Uses superclasses to specialize behavior while warning against inheritance chosen solely for code reuse.
How deep it goes
Explains inheritance, hierarchy shape, superclass access, and substitutability, but stops short of detailed multiple-inheritance mechanics.
Examples
Demonstrates Bird subclasses, CarbonFiberFrame and Frame, and a Teller override using super().
What you can do after
Apply it via Python inheritance and super() while checking hierarchy size, behavior specialization, and substitutability.

Read how Practices of the Python Pro explains superclass →

Python Workout: 50 ten-minute exercises

A parent class is a class whose attributes and behavior are inherited by a derived child class.

How it is used
Uses inheritance to organize related classes, reuse general behavior, and add specialized functionality.
How deep it goes
Explains inheritance, ICPO lookup, and parent initialization, but stops short of broader inheritance mechanics.
Examples
Uses Person–Employee, Foo–Bar, Bowl–BigBowl, Envelope–BigEnvelope, and Phone–SmartPhone–iPhone examples.
What you can do after
Apply it via Python classes to build subclasses that reuse, extend, or selectively modify parent behavior.

Read how Python Workout: 50 ten-minute exercises explains superclass →

The Well-Grounded Python Developer: How the pros use Python and Flask

A parent class is a class whose attributes and behavior are inherited by another class.

How it is used
Reduces duplicated attributes and behavior when multiple classes share functionality.
How deep it goes
Explains parent-child terminology, inheritance syntax, specialization, and parent initialization through shape examples.
Examples
Uses ParentClass and ChildClass, then develops Shape, Rectangle, Square, and Circle drawing classes.
What you can do after
Build inheritance relationships and reuse or specialize parent behavior in Python classes.

Read how The Well-Grounded Python Developer: How the pros use Python and Flask explains superclass →

Also covered in

What to know first

Related concepts

Questions about superclass

What is superclass?

A superclass is a class from which another class inherits members, structure, or behavior.

Which Manning books explain superclass?

Python How-To, The Well-Grounded Rubyist, Fourth Edition, Kotlin in Action, 2E, Python Workout, Second Edition, Object-Oriented Software Design in C++, 100 C++ Mistakes and How to Avoid Them, The Quick Python Book, Fourth Edition, Practices of the Python Pro and 2 more.

What should I know before learning superclass?

Manning books that teach superclass usually introduce attribute, class, design pattern and function first.

What is the difference between superclass and subtyping?

A superclass is a class from which another class inherits members, structure, or behavior. Subtyping is a type-system relationship in which values of a more specific type can be used wherever a compatible, more general type is expected.

What is superclass also called?

Superclass is also called base class or parent class.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.