Practical Object-Oriented Design: An Agile Primer Using Ruby by Sandi Metz
Author:Sandi Metz [Metz, Sandi]
Language: eng
Format: epub, pdf
Publisher: Pearson Education
Published: 2018-07-09T23:00:00+00:00
6.4.1 Creating an Abstract Superclass
Figure 6.6 shows a new class diagram where Bicycle is the superclass of both MountainBike and RoadBike. This is your goal; it’s the inheritance structure you intend to create. Bicycle will contain the common behavior, and MountainBike and RoadBike will add specializations. Bicycle’s public interface should include spares and size, and the interfaces of its subclasses will add their individual parts.
Bicycle now represents an abstract class. Chapter 3, “Managing Dependencies,” defined abstract as being disassociated from any specific instance, and that definition still holds true. This new version of Bicycle will not define a complete bike, just the bits that all bicycles share. You can expect to create instances of MountainBike and RoadBike, but Bicycle is not a class to which you would ever send the new message. It wouldn’t make sense; Bicycle no longer represents a whole bike.
Download
Practical Object-Oriented Design: An Agile Primer Using Ruby by Sandi Metz.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hello! Python by Anthony Briggs(9912)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9795)
The Mikado Method by Ola Ellnestam Daniel Brolund(9777)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8293)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7775)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7760)
Grails in Action by Glen Smith Peter Ledbrook(7693)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Windows APT Warfare by Sheng-Hao Ma(6806)
Layered Design for Ruby on Rails Applications by Vladimir Dementyev(6529)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6409)
Blueprints Visual Scripting for Unreal Engine 5 - Third Edition by Marcos Romero & Brenden Sewell(6399)
Kotlin in Action by Dmitry Jemerov(5062)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4316)
Functional Programming in JavaScript by Mantyla Dan(4037)
Solidity Programming Essentials by Ritesh Modi(3985)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3774)
Unity 3D Game Development by Anthony Davis & Travis Baptiste & Russell Craig & Ryan Stunkel(3717)
The Ultimate iOS Interview Playbook by Avi Tsadok(3694)
