---
title: "CPP virtual function"
author: "yangbinfc"
date: "2011-05-06T10:30:00Z"
tags: []
slug: "cpp-virtual-function"
draft: false
lastmod: "2012-11-04T17:47:27Z"
id: 1715331
url: "https://yangbinfc.iteye.com/blog/1715331"
---

CPP 虚函数：

多态：依靠virtual

java 多态

：依靠注解override

java的所有的函数都可以说是虚函数 ， 抽象函数是纯虚函数