Skip to main content

Posts

Showing posts with the label computer language c cpp

How to start learning Web-development

Write a program for Adding , Subtracting , Multiplying , Dividing two number in C++ language?

   Writing a programs in C++ languages  Here in this blog you will see the basic program of  C++ programming languages in below so follow your blogger website and see more interesting topics  1. Adding of two number in c++ programming language  In this program we give you knowledge about basic program of addition of two number in C++ languages and how to write a program in Ide like VS code etc  //Adding two number #include<iostream> using namespace std; int main() { int a,b,c; cout<<"Enter the value of a ="; cin>>a; cout<<"Enter the value of b ="; cin>>b; cout<<"Addition of Two Number"<<"\n"; c=a+b; cout<<c; return 0; } output - Enter the value of a =12 Enter the value of b =12 Addition of Two Number Addition = 24 2. Subtraction of two number in c++ programming language  In this program we give you knowledge about basic program of Subtraction of two number in ...

Explaining Inheritance in c++ language

   Inheritance in c++ programming language :  Inheritance in C++ programming language ->     Inheritance help us to derive characteristic from another class and us it is the one of the most important feature of object oriented programming     we called      Existing = old class = parent class = base class     New class = child class = Derived class     ##Syntax - ##     class base_class{         ..     };     //  Visiblity_Mode - Private , Public ,Protected     class derived_class:Visiblity_Mode base_class     {         ..     }; Type of inheritance -  1.Single  2.Multilevel  3.Multiple 4.Hierarchical 5.Hybrid 1.Single - single inheritance means there are one parent class and one in child class by using inheritance syntax . Example -  Let take there is a two class one is class A and one is...

Class and Object , function overloading Explanation in c++ language

 Classes in C language - It is a user defined data type data type which hold its own data members and member function which can be accessed and user by creating an instance of that class and we say that class is building block that leads to Object Oriented programming  Data member -  It is the data variable of the function  Member function - It are the function use to manipulate these function variable  For Example -  A car is an object the car has attribute such as weight , color and methods such as drive and brake Attribute and method are basically variable and function that belong to class syntax - class   class{        // The class    public :              // Access specifier      int   Num;         // Attribute (int variable)     string word;   // Attribut...