继承和派生

video-placeholder
Loading...
View Syllabus

Reviews

4.7 (798 ratings)

  • 5 stars
    83.70%
  • 4 stars
    10.90%
  • 3 stars
    3.13%
  • 2 stars
    1.12%
  • 1 star
    1.12%

HX

Mar 16, 2016

Filled StarFilled StarFilled StarFilled StarFilled Star

Challenging but highly recommended if you really want to learn something serious about C++.

RX

Oct 21, 2017

Filled StarFilled StarFilled StarFilled StarFilled Star

Excellent course! Teachers are humorous and good at logical teaching.

From the lesson

继承与派生

代码重用是提高软件开发效率的重要手段,因此C++对代码重用有很强的支持,继承与派生就是支持代码重用的机制之一。例如,要编写一个学生管理程序,必然要设计一个“学生”类,“学生”类会包含学生共有的姓名、学号等属性,但是中学生、大学生、研究生又有各自不同的属性和方法,如果为每种学生单独编写一个类会造成重复与浪费。本模块将介绍通过继承和派生机制,可以在基类的基础上派生出不同的类,从而达到代码重用的目的。

Taught By

  • Placeholder

    Jiaying Liu 刘家瑛, Ph.D.

    Associate Professor

  • Placeholder

    郭 炜

    讲师

Explore our Catalog

Join for free and get personalized recommendations, updates and offers.