Question
What are the access privileges in c++ ? what is the default access level ?

Answers

The access privileges in C++ are private, public and protected. The default access level assigned to members of a class is private. Private members of a class are accessible only within the class and by friends of the class. Protected members are accessible by the class itself and it's sub-classes. Public members of a class can be accessed by anyone.   Your Comment




More computer science engineering Questions..
To what does message protocol refer?

What is operator overloading?

Explain the isa and hasa class relationships. How would you implement each in a class design?

What is polymorphism?

When should you use multiple inheritance?

What is the difference between c and c++ ? would you prefer to use one over the other ?

How is memory allocated/deallocated in c ? how about c++ ?

What do the keyword static and const signify?

What are the differences between a c++ struct and c++ class?

Compare and contrast c and c++.?

What are class variables?

What are instance variables?

What is uml?

How does throwing and catching exceptions differ from using setjmp and longjmp?

In c++ what is a constructor? a destructor?

When is a template a better solution than a base class?

What is the difference between a shallow copy and a deep copy?

What is a super-class?

What is your reaction to this line of code?

What is an instance?



Search
Can you Answer!!
  • Q Formal Review & Informal Review Explain Formal Review & Informal Review.
  • Q Acid rain is caused due to pollution of atmosphere by–
  • Q Write a program to sort an array of 100 integral numbers.
  • Q What are the two ingredients of a screwdriver cocktail?
  • Q How can we determine the name of a form?
  • Q What is orange mantra. interview process? or recruitment & selection process?
  • Q As per a recent notification by Union Government of India , the government will pay how much for each unit of solar power produced under the National Solar Mission to maximize solar power?
  • Q Which organization announced euphemistically it would 'transition' its modestly performing '360' social networking website?
  • Q Define ATP Synthase.
  • Q How do thermal inversions relate to air pollution " events"?
  • Q Write a note on recon