Friday, February 27, 2015

What is public, protected, private?

Question:What is public, protected, private??

Answer: Public, protected and private are three access specifiers in C++. <br /><br />1. Public data members and member functions are accessible outside the class.<br /><br />2. Protected data members and member functions are only available to derived classes.<br /><br />3. Private data members and member functions can't be accessed outside the class. <br /><br />However there is an exception can be using friend classes.

Tags:Interview Questions, Languages, C++,

Please submit your Interview Answer for the above Question via replying to this post. Thank you for visiting to our blog, Have a Good Day!.



Sponsor Advertisement



Hospital Management Software

Hotel Management System Software

Hotel Management System software is a web based system help to manage reservations, roomstays, bookings, guests, folios, invoices and billing etc. The software features include revenue management, booking calendar, guest relationship management, check-in & check-out, invoices and receipts etc...

No comments:

Post a Comment