One of the central concepts of Object-Oriented Programming is class inheritance. This allows a new cu
One of the central concepts of Object-Oriented Programming is class inheritance. This allows a new custom class to inherit and extend the properties and methods of a base class to suit the specific needs of the application.
Example:
"Cars" (base class) (level 1)
- bodyStyle (property)
- color (property)
Gasoline (inherits from "Cars") (level 2)
- displacement (property)
- emissions (property)
Electric (inherits from "Cars") (level 2)
- batterySize (property)
- regenerativeBraking (property)
Ford (inherits from "Gasoline") (level 3)
- model (property)
- (additional properties – features, options and accessories)
Tesla (inherits from "Electric") (level 3)
- model (property)
- (additional properties – features, options and accessories)
Using your knowledge, experience and ideas, and considering what you've learned from the unit learning activities and other resources, create a set of custom classes in three inheritance levels for an application for a business or organization (like the example above). You will not program this application, just think about it and discuss it. The first level, consisting of a single custom class, should represent the highest conceptual level, with each subsequent level being more specific and more likely to apply to a real product or service. The second and third levels should have 2-3 classes each, with the classes on the third level inheriting from classes in the second level.
In your replies to fellow students, consider the custom classes they've devised and the program they envision. Suggest additional classes, and/or additional properties and/or methods that would enhance these classes and the overall functionality of the application.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.