Friend Function in C++

Image
Friend Function in C++ Welcome to C++ Programming. In this article, we will talk about friend Function and friend Class trying to understand what do they mean and why are they useful in C++ design process. These will be the module outline we will take examples of Matrix Vector Multiplication and Linked List, and finally will end with somenotes. As you know as usual the outline will be available on the left of your slide So, let us first introduce the basic notion of friend function. On the left you have the view of ordinary function. So the situation is like this, that I have a class myclass which as some private data, it has a constructor, and it has; I am sorry if just ignore this line. I have this function written outside of this class which is trying to do something with the class. What is it doing? It takes an object of the class by reference parameter call by reference, and then it tries to print the data element component of that objective. Now, what do we know, this is pr...

Programming language in C++

1.Programming language in C++

C++ is one among the world's hottest programming languages. C++ are often found in today's operating systems, Graphical User Interfaces, and embedded systems. C++ is an object-oriented programing language which provides a transparent structure to programs and allows code to be reused, lowering development costs.The general purpose programming language of c++ is to use the class shape which was not in c language.Which is created by bjarne stroustrup as an extension of c language.

2.Object Oriented Programming

Object Oriented programming in c++ as the name suggests, it uses objects in programming. Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism, etc in programming. The main aim of OOP (Object-oriented programming) is to bind together the info and therefore the functions that operate them in order that no other part of the code can access this data except that function.

3.Computer Program

A computer virus may be a list of instructions that tell a computer what to try to do. Everything a computer does is completed by employing a computer virus. A computer virus is written during a programming language. Programs stored within the memory of a computer enable the pc to perform tasks in sequence or maybe intermittently. The idea of an internally stored program was introduced within the late 1940s by the Hungarian-born mathematician John von Neumann.

3.1 Examples of Computer Program

  1. Operating System
  2. Webpages
  3. Web browsers
  4. Internet
  5. Etc

3.2 Types of Computer Program

  1. System Software
  2. Application Software

4 Basics of C++

Four things:-
  1. Objects are logical things.
  2. Variables are the data to store information
  3. Methods are the way to implement the process.
  4. Class is a blueprint.


5 Books for Programming language C++


  1. The C++ Programming language by Bjarne stroustrup
  2. D.S.MALIK
  3. Robert Lafore


5.1 Book Images

Comments

Popular posts from this blog

Friend Function in C++

How To Use Class and Object In C++