It’s public:
and not Public:
.
Because dd
is part of A
, you need an instance of A
to access dd
.
More Related Contents:
- Questions regarding constructors
- class->methode1()->methode2() what does it mean? [closed]
- Why ‘&’ reference in not required in classes in C++?
- SDL and C++ Class…how to separate this code?
- Why is enum class preferred over plain enum?
- Why is there no call to the constructor? [duplicate]
- Forward declaration of nested types/classes in C++
- C/C++ Struct vs Class
- What are the differences between struct and class in C++?
- Functions with const arguments and Overloading
- Iterate through Struct and Class Members [duplicate]
- Type of ‘this’ pointer
- Most vexing parse confusion
- What is the default value for C++ class members
- How do you determine the size of an object in C++?
- How do you use CreateThread for functions which are class members?
- Are parent class constructors called before initializing variables?
- Class vs Struct for data only?
- Will an ’empty’ constructor or destructor do the same thing as the generated one?
- CUDA and Classes
- How to access private data members outside the class without making “friend”s? [duplicate]
- Why does C++ not let baseclasses implement a derived class’ inherited interface?
- How can I avoid including class implementation files?
- c++ issue with function overloading in an inherited class
- How to create a template function within a class? (C++)
- Why can’t we declare a namespace within a class?
- No matching function for call to Class Constructor
- Do static members of a class occupy memory if no object of that class is created?
- Template type deduction in C++ for Class vs Function?
- Same class name in different C++ files