Computer Science, asked by kotharidhruv103, 1 year ago

Difference between access specifier and visibility mode in c++

Answers

Answered by CyberAkay
55
Dear mate,
Kindly mark the answer as brainliest if you find it useful.

Here's what you are looking for:

➡Visibility Mode:

It is used in C++ to show the relationship between the base and the derived class. It specifies what the derived class can derive from the base class. It is therefore used in inheritance.

➡Access Specifiers:

It is used to define the behaviour of the variable and function in a class. It tells which object can access the variable and function. It is public, private and protected. It is therefore used in class.

Hope this clears your doubt.✌

Do follow me if the answer was useful.
Similar questions