ExamRadaronline engineering learning center
  • Home
  • Cyber Security
  • CS Core Subjects
    • Data structure
    • Data Communication
    • DBMS
    • Computer Architecture
    • Microprocessor
    • 8086
    • Operating System
    • Digital Electronics
  • Programming
    • C Programming
    • C++ Programming
    • Java Networking
  • MCQ Sets
  • Online Tests
  • Que and Ans
  • Books

Programming in C++ – Friend Function

It is a non-member function that can access the private members of the class to which it is
declared as friend.

According to OOP concept of data hiding or data encapsulation, no outside function can
access the private data in a class. Since friend function is a clear violation of this concept. It is
rarely used, so as to reduce data security ricks.

 
 
You may be interested in:
Programming In C MCQs
Programming In C++ MCQs
Object Oriented Programming Using C++ Short Questions Answers
 
 

Previous

Programming in C++ – Class Vs Structure

Next

Programming in C++ – Basic Object Oriented concept

TABLE OF CONTENTS

  • Programming in C++ – Introduction

  • Programming in C++ – Procedure Oriented Programming Vs OOP(Object Oriented Programming)

  • Programming in C++ – An Example of C++ Program

  • Programming in C++ – Basic Data Types

  • Programming in C++ – Variables

  • Programming in C++ – Operators

  • Programming in C++ – Control Statements

  • Programming in C++ – Why OOP language?

  • Programming in C++ – Class Vs Structure

  • Programming in C++ – Friend Function

  • Programming in C++ – Basic Object Oriented concept

  • Programming in C++ – Functions

  • Programming in C++ – Static Members and Static Variables

  • Programming in C++ – Inheritance

  • Programming in C++ – Polymorphism

  • Programming in C++ – Declaration and Definition of a Constructor

  • Programming in C++ – Type Of Constructor

  • Programming in C++ – Declaration and Definition of a Destructor

  • Programming in C++ – Declaration And Definition Of Overloading

  • Programming in C++ – Stream and Stream Classes

  • Programming in C++ – put() and get() functions

  • Programming in C++ – getline() and write() functions

  • Programming in C++ – File stream classes

  • Programming in C++ – Opening Files using Constructor

  • Programming in C++ – Opening Files using open()

Team behind this platform

We Are Engineering Graduate ,Tutor and Technology lover, Our Primary Main Area of interest is Computer Science And Electronics & Communication Technology


We are trying to make all those topics more simple and easy to understand,So that it will help students to learn it very quickly in limited amount of time like Last Peak hours of their Extermination,its like last time revision Notes. we also have provided the depth knowledge of some topics which really require more words to explain.


Other Area of this online platform contains "Online MCQ based Tests / Multiple choice Questions" ,Which can Helps readers to crack Various competitive Exams


Computer subject become necessary for all the students from various branches, and this platform will provide them all the required knowledge to answer the Questions correctly in the various competitive exams

If you have any Questions regarding this free Computer Science tutorials ,Short Questions and Answers,Multiple choice Questions And Answers-MCQ sets,Online Test/Quiz,Short Study Notes don’t hesitate to contact us via Facebook,or through our website.Email us @ [email protected] We love to get feedback and we will do our best to make you happy.

Copyright © 2023 | ExamRadar. | Contact Us | Copyright || Terms of Use || Privacy Policy