answersLogoWhite

0

Public members and methods of a class are universally accessible. Protected members and methods of a class are accessible to methods of instances of that class and its derived classes. Private members and methods of a class are accessible only to methods of instances of that class.

Class A has three members: public_member, protected_member, and private_member, which have access corresponding to their names. Class A has access to all three. Class B, derived from class A, has access to public_member and protected_member, but not private_member. Unrelated class C has access only to public_member.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the relationship between database and c plus plus?

There is none. While you can access databases from C++, the two concepts are fundamentally different.


What is the default access specifier in C plus plus?

private


What is the different between turbo c plus plus and unix c plus plus?

There is no such thing as 'unix C++'.


Is the syntax between c and c plus plus different?

Yes


Define protected access modifire in c plus plus?

The access privileges in c++ are 1.public 2.private 3.protected and by default its private


What is the different of c and c plus plus?

c is procedure oriented and c++ is object oriented & much newer.


What is the different between Compiler and Interpreter in C or C plus plus programming?

It is easy to tell: there is no interpreter for C and C++, they are compiled languages.


Do i need a Microsoft Access license if i want to access a Access-DB through a own written C plus plus -Programm?

No. You need an ODBC, OLE, or DAO driver that understand MS Access. That should come with the C++ run-time, or with the most recent version of DAO for Windows.


What is different of c language and c plus plus?

Primarily OOP support, but there are minor syntax difference. By and large anything you can do in C you can also do in C++.


How C plus plus is better than C?

C++ is a language code for computer and lapatops which is used in programming but C is a grade so they are different.


Why do you use a different extension for c and c plus plus programs?

Simply because they're different languages, C++ has a few more added components to it. If they were the same they would both be C wouldn't they?


Is g plus plus similar to c plus plus?

G++ is the Gnu compiler's extension for C++. It is not a different language. It simply allows you to use the GCC compiler to write C++ code.