Answers for "default access modifier in c++ in struct"

C++
1

default access modifier in c++ in struct

A structure is a class defined with the struct keyword.
 Its members and base classes are public by default. 
  In practice, structs are typically reserved for data without functions. 
    When deriving a struct from a class/struct, default access-specifier for a base class/struct is public.
Posted by: Guest on July-13-2021

Code answers related to "default access modifier in c++ in struct"

Browse Popular Code Answers by Language