Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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.
 
PREVIOUS NEXT
Tagged: #default #access #modifier #struct
ADD COMMENT
Topic
Name
5+2 =