-
Ziele
- Override the assignment operate. - Initialize objects. - Convert data types. - Identify the issues related to inheritance. - Identify the effect of access specifiers on inheritance. - Implement inheritance. - Identify friend relationships, containment relationships, and associative relationships. - Implement friend relationships, containment relationships, and associative relationships.
-
Anforderungen
Application developers, software engineers, systems engineers, and programming specialists are some of the people who would benefit from taking this course. Anyone who designs and implements system level programs or corporate client/server applications, and anyone who maintains and updates existing client/server applications would be good candidates for this course. Participants should be fluent in the ANSI C programming language, have a comprehensive understanding of the programming process, and have exposure to the fundamental concepts of object-orientation. Students should either have knowledge equivalent to or have taken the C Programming series (courses 13201-13204) prior to taking this course. In addition, students should have taken the first part in this series, course 13205.
-
Titel
Kurs 13206 - C++ Programming - Part 2
-
Inhalt
Deployment Options
Self-Study
Objectives
Unit 1: Assignment, Initialization, and Conversion - 3 hours
- Identify the implications of inappropriately using the default assignment operator in a program.
- Identify the code to override the assignment operator.
- Write the code to initialize an object of a specified class.
- Identify the appropriate constructor that will be invoked when a specific line of code is executed in a specified scenario.
- Identify the code of a class destructor for a specific scenario.
- Identify the correct code of the copy constructor that will initialize an object for a specified scenario.
- Identify the appropriate set of constructors and destructors to be used for creating and initializing objects in a specified situation.
- Identify the code to convert a standard data type to another standard data type by using the standard conversion functions.
- Identify the conversion function to convert data from a fundamental data type to a user-defined data type for a specified scenario.
- Identify the appropriate conversion function to convert a user-defined data type to a fundamental data type for a specified scenario.
- Identify the code to convert an object of user-defined type to an object of another user-defined type for a specified scenario.
Unit 2: Inheritance - 3 hours
- Identify the features of inheritance.
- Match the types of inheritance with their definitions.
- Match the members of a class with the access specifiers that should be used to declare them for a specific scenario.
- Write the code to derive a class from a specified base class for a specified scenario.
- Identify the derived class constructor that is needed to initialize a derived class object with arguments.
- Write the code to access a base class member function from a publicly derived class.
- Identify the code to access a base class member function from a privately derived class by using the using declaration.
- Identify the actions performed by the compiler to assign a derived class object to a base class object for a specified scenario.
- Identify the appropriate implementation of mixed assignments when a base class object is assigned to a derived class object.
- Write the code to declare a virtual base class.
- Identify the code of a derived class constructor in a program that uses multiple inheritance with virtual base classes.
Unit 3: Types of Relationships - 2 hours
- Identify the code to implement a friend relationship between two classes for a given scenario.
- Identify the code to implement a friend relationship between a non-member function and a class for a specific scenario.
- Identify the code to implement a function of a class as a friend function of another class for a given scenario.
- Identify the implications of a friend relationship between two classes.
- Identify the benefits of a composite relationship.
- Write the code to access the member functions of a composite class by using a composed class object.
- Calculate the value assigned to a composite class data member when the composite class member is initialized using a composed class object.
- Identify the features of associative relationships.
- Debug the code to implement an associative relationship with custody between two classes.
- Debug the code to implement an associative relationship without custody between two classes.
Course Access
Each student has access to the course for a period of 6 months from the day of enrollment in the course.