C++primer 15.2.3 sessions

Source: Internet
Author: User

Exercise 15.8

Static type: The type at which the object is declared, which is determined at compile time

Dynamic type: The type of object currently being referred to is determined at run time

Exercise 15.9

In the first case, a static type may be different from a dynamic type when there is an implicit conversion between the static type of the object and the dynamic type of the object

The second type: When a base class pointer or base class reference refers to a derived class object

Exercise 15.10

Ifsteam defines a file input stream object that writes input stream objects to the Sales_data class object.

C++primer 15.2.3 sessions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.