COMP2129 Study Guide - Final Guide: Microsoft Visual Studio, Code Segment, Compile Time

256 views2 pages
18 Feb 2013
Department
Course
Professor

Document Summary

Now any and every class that derives from the person class must provide the implementation details for the getexercisehabits( ) method. That is what adding the abstract keyword does. If you derive from an abstract base class, you sign a contract that details how to implement its abstract methods. If the abstract class includes more than one abstract method, derived classes must provide implementation details for every abstract method included in the base class. Abstract classes can include regular data field members, regular methods, and virtual methods in addition to abstract methods. Other than the fact that the derived class must implement all abstract methods, no additional special keywords are used when a new class is defined to inherit from the abstract base class. All . net languages only support inheritance, which means that a class can extend or derive from at most one class. One-way languages such as c# and java work around this is by implementing multiple interfaces.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents