简洁易懂讲清原理,讲不清你来打我~

最本质区别是默认控制访问,struct是public、class是private

struct适合看做一个数据结构实现体,class更适合看做一个对象实现体