Public « Class « C++






1.Illustrates the use of a public variableIllustrates the use of a public variable
2.Assign the public object member address to a pointerAssign the public object member address to a pointer
3.public class extending
4.field in struct is public by default
5.Class with only public fields and methods
6.Virtual public inheritance
7.public data field
8.public inheritance from three parent classes