由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - about struct and class in c++
相关主题
What is the difference between class and struct?定义linked list最后一行什么意思?
请问C++小白问题请教一个MS Linked List的问题
one question about struct关于c++ classes的interview test
C++菜鸟问题请教: class versus structure.问个 C++到C的问题
The C++ questions I've been asked问一个inheritance的初级问题
不明白C++的一个地方为什么要用template
one more interview questionA C++ inheritance question!
C++ Q09: delete dynamic array共享我的C++面试题目精选
相关话题的讨论汇总
话题: struct话题: class话题: c++话题: my话题: inherit
进入Programming版参与讨论
1 (共1页)
l*****d
发帖数: 359
1
it seems that struct and class are equivalent in c++ except for that the
default access for the member of a class is private while for that of a
struct is public.
My question is: can a struct inherit from a class, and vise versa?
S*********g
发帖数: 5298
2
give it a try

【在 l*****d 的大作中提到】
: it seems that struct and class are equivalent in c++ except for that the
: default access for the member of a class is private while for that of a
: struct is public.
: My question is: can a struct inherit from a class, and vise versa?

1 (共1页)
进入Programming版参与讨论
相关主题
共享我的C++面试题目精选The C++ questions I've been asked
请教一个class design的问题不明白C++的一个地方
考考大家,其实也不只是C++,C#/Java也一样one more interview question
C & C++ mixing questionC++ Q09: delete dynamic array
What is the difference between class and struct?定义linked list最后一行什么意思?
请问C++小白问题请教一个MS Linked List的问题
one question about struct关于c++ classes的interview test
C++菜鸟问题请教: class versus structure.问个 C++到C的问题
相关话题的讨论汇总
话题: struct话题: class话题: c++话题: my话题: inherit