SlideShare uma empresa Scribd logo
1 de 9
AND

WITH FEATURES OF OOPS
In computing, C is a general-purpose programming
language initially developed by Dennis Ritchie between
1969 and 1973 at AT&T Bell Labs.

   C is a procedural language in which we focus on
mathematical and algorithm.
 Simple C Program
                           # include <stdio.h>
                      int main(void) {
                    printf(“Hello Worldn”);
                           return 0;
                              }
C++ was originally developed to be the next
version of C, not a new language. it was developed
by Bjarne Stroustrup starting in 1979 at Bell Labs

    It is an object oriented programming language in
which we focus on real life problem.

Simple C++ Program
                     #include <iostream.h>
                     int main(void) {
                      cout << “Hello Worldn”;
                       return 0;
                          }
Differences

C
      it is most stable for handling small
programme.

C++
      it is for handling large programme.

C
      it follows top down approach.

C++
      it flows bottom up approach.
C
    Data in shareable mode. i.e. Data can be accessed by other function.

C++
   Data in non shareable mode. i.e. Data can not be accessed by other
   function.

C
    It does not support function overloading (two functions may have
     the same name).

C++
  It support function overloading (function names must be unique).

C
    Data is not secured in ‘c’ .

C++
  Data is secured in ‘c++’ .
BASIC FEATURES OF OBJECT ORIENTED
        PROGRAMMING LANGUAGE (OOPS)


           OBJECT               CLASS




MESSEGE
PASSING             OOPS            INERITANCE




          DYNAMIC            POLYMORPHI
          BINDING                SM
OBJECTS
      Objects are basic runtime entity in object oriented system. When a
program is executed, the objects interact by sending messages to one
another .


CLASS
         Classes are user defined data types and it behaves like built in
types of programming language. It is the way to bind the data and
function to gather in a single unit.


INHERITANCE
            The mechanism of deriving a new class from an old class is
called inheritance or derivation. The old class is known as base class
while new class is known as derived class or sub class. The inheritance is
the most powerful features of OOP.
POLYMORPHISM
       Polymorphism is a Greek term which means ability to take more than one
form.
For example, + is used to make sum of two numbers as well as it is used to combine
 two strings.


DYNAMIC BINDING
      Dynamic binding means link exist between procedure call and code to be
execute at run time when that procedure is call.


MESSAGE PASSING
    Objects can communicate with each others by passing message same as
people passing message with each other. Message passing involves name of object,
name of function (message) and information to be send.
C vs c++

Mais conteúdo relacionado

Mais procurados

C++ Overview
C++ OverviewC++ Overview
C++ Overview
kelleyc3
 

Mais procurados (20)

C++ Overview
C++ OverviewC++ Overview
C++ Overview
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
C basics
C   basicsC   basics
C basics
 
History of C Programming Language
History of C Programming LanguageHistory of C Programming Language
History of C Programming Language
 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++
 
C and C++ Industrial Training Jalandhar
C and C++ Industrial Training JalandharC and C++ Industrial Training Jalandhar
C and C++ Industrial Training Jalandhar
 
Functions in c++
Functions in c++Functions in c++
Functions in c++
 
C++ Language
C++ LanguageC++ Language
C++ Language
 
Intro to c++
Intro to c++Intro to c++
Intro to c++
 
Function C++
Function C++ Function C++
Function C++
 
OOPS Basics With Example
OOPS Basics With ExampleOOPS Basics With Example
OOPS Basics With Example
 
Constructors and Destructor in C++
Constructors and Destructor in C++Constructors and Destructor in C++
Constructors and Destructor in C++
 
C++ language basic
C++ language basicC++ language basic
C++ language basic
 
Introduction to c++ ppt 1
Introduction to c++ ppt 1Introduction to c++ ppt 1
Introduction to c++ ppt 1
 
C++
C++C++
C++
 
Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++
 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
 
Inheritance in OOPS
Inheritance in OOPSInheritance in OOPS
Inheritance in OOPS
 
Static Data Members and Member Functions
Static Data Members and Member FunctionsStatic Data Members and Member Functions
Static Data Members and Member Functions
 
C by balaguruswami - e.balagurusamy
C   by balaguruswami - e.balagurusamyC   by balaguruswami - e.balagurusamy
C by balaguruswami - e.balagurusamy
 

Destaque

Corrosion control
Corrosion controlCorrosion control
Corrosion control
ZTE Nepal
 
A comparison between C# and Java
A comparison between C# and JavaA comparison between C# and Java
A comparison between C# and Java
Ali MasudianPour
 

Destaque (20)

difference between c c++ c#
difference between c c++ c#difference between c c++ c#
difference between c c++ c#
 
Ppt of c++ vs c#
Ppt of c++ vs c#Ppt of c++ vs c#
Ppt of c++ vs c#
 
Ppt of c vs c#
Ppt of c vs c#Ppt of c vs c#
Ppt of c vs c#
 
C++ vs C#
C++ vs C#C++ vs C#
C++ vs C#
 
Discussing Fundamentals of C
Discussing Fundamentals of CDiscussing Fundamentals of C
Discussing Fundamentals of C
 
C and C ++ Training in Ambala ! BATRA COMPUTER CENTRE
C and C ++ Training in Ambala ! BATRA COMPUTER CENTREC and C ++ Training in Ambala ! BATRA COMPUTER CENTRE
C and C ++ Training in Ambala ! BATRA COMPUTER CENTRE
 
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTREC & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
 
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
C & C++ Training in Ambala ! BATRA COMPUTER CENTREC & C++ Training in Ambala ! BATRA COMPUTER CENTRE
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
 
Intro to C++ Basic
Intro to C++ BasicIntro to C++ Basic
Intro to C++ Basic
 
basics of C and c++ by eteaching
basics of C and c++ by eteachingbasics of C and c++ by eteaching
basics of C and c++ by eteaching
 
History of C/C++ Language
History of C/C++ LanguageHistory of C/C++ Language
History of C/C++ Language
 
Overview of c++ language
Overview of c++ language   Overview of c++ language
Overview of c++ language
 
Corrosion control
Corrosion controlCorrosion control
Corrosion control
 
Dot net guide for beginner
Dot net guide for beginner Dot net guide for beginner
Dot net guide for beginner
 
C sharp
C sharpC sharp
C sharp
 
C++ to java
C++ to javaC++ to java
C++ to java
 
Python basic
Python basicPython basic
Python basic
 
3rd june
3rd june3rd june
3rd june
 
Beginning Java for .NET developers
Beginning Java for .NET developersBeginning Java for .NET developers
Beginning Java for .NET developers
 
A comparison between C# and Java
A comparison between C# and JavaA comparison between C# and Java
A comparison between C# and Java
 

Semelhante a C vs c++

c++session 1.pptx
c++session 1.pptxc++session 1.pptx
c++session 1.pptx
PadmaN24
 
c programming, internshala training , govt engineering college aurangabad
c programming, internshala training , govt engineering college aurangabadc programming, internshala training , govt engineering college aurangabad
c programming, internshala training , govt engineering college aurangabad
Pysh1
 
Principles of object oriented programing
Principles of object oriented programingPrinciples of object oriented programing
Principles of object oriented programing
Ahammed Alamin
 

Semelhante a C vs c++ (20)

Oops concepts in c++ documentation
Oops concepts in c++ documentationOops concepts in c++ documentation
Oops concepts in c++ documentation
 
object oriented programming language fundamentals
object oriented programming language fundamentalsobject oriented programming language fundamentals
object oriented programming language fundamentals
 
c++session 1.pptx
c++session 1.pptxc++session 1.pptx
c++session 1.pptx
 
C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTERC++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
C++ TRAINING IN AMBALA CANTT! BATRA COMPUTER CENTER
 
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org) (usef...
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org)  (usef...Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org)  (usef...
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org) (usef...
 
Unit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introductionUnit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introduction
 
Basic Introduction to C++.pptx
Basic Introduction to C++.pptxBasic Introduction to C++.pptx
Basic Introduction to C++.pptx
 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++
 
c programming, internshala training , govt engineering college aurangabad
c programming, internshala training , govt engineering college aurangabadc programming, internshala training , govt engineering college aurangabad
c programming, internshala training , govt engineering college aurangabad
 
C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]
 
Lab 1.pptx
Lab 1.pptxLab 1.pptx
Lab 1.pptx
 
Principal of objected oriented programming
Principal of objected oriented programming Principal of objected oriented programming
Principal of objected oriented programming
 
L6
L6L6
L6
 
C++ with student management system project
C++ with student management system projectC++ with student management system project
C++ with student management system project
 
C++Basics2022.pptx
C++Basics2022.pptxC++Basics2022.pptx
C++Basics2022.pptx
 
The Differences Between C and C++
The Differences Between C and C++The Differences Between C and C++
The Differences Between C and C++
 
Week1
Week1Week1
Week1
 
Principles of object oriented programing
Principles of object oriented programingPrinciples of object oriented programing
Principles of object oriented programing
 
Interoduction to c++
Interoduction to c++Interoduction to c++
Interoduction to c++
 
C programming basics
C  programming basicsC  programming basics
C programming basics
 

Mais de ZTE Nepal

Thermodynamic system
Thermodynamic systemThermodynamic system
Thermodynamic system
ZTE Nepal
 
Powder metallurgy
Powder metallurgyPowder metallurgy
Powder metallurgy
ZTE Nepal
 
Water for domestic use
Water for domestic useWater for domestic use
Water for domestic use
ZTE Nepal
 
Block diagram of computer 02
Block diagram of computer 02Block diagram of computer 02
Block diagram of computer 02
ZTE Nepal
 
Block diagram of a computer
Block diagram of a computerBlock diagram of a computer
Block diagram of a computer
ZTE Nepal
 
Corrosion control
Corrosion controlCorrosion control
Corrosion control
ZTE Nepal
 
Construction scheduling
Construction schedulingConstruction scheduling
Construction scheduling
ZTE Nepal
 

Mais de ZTE Nepal (11)

carnotcycle
carnotcyclecarnotcycle
carnotcycle
 
Datatypes
DatatypesDatatypes
Datatypes
 
Thermodynamic system
Thermodynamic systemThermodynamic system
Thermodynamic system
 
Powder metallurgy
Powder metallurgyPowder metallurgy
Powder metallurgy
 
Acid rain
Acid rainAcid rain
Acid rain
 
Water for domestic use
Water for domestic useWater for domestic use
Water for domestic use
 
Memory 02
Memory 02Memory 02
Memory 02
 
Block diagram of computer 02
Block diagram of computer 02Block diagram of computer 02
Block diagram of computer 02
 
Block diagram of a computer
Block diagram of a computerBlock diagram of a computer
Block diagram of a computer
 
Corrosion control
Corrosion controlCorrosion control
Corrosion control
 
Construction scheduling
Construction schedulingConstruction scheduling
Construction scheduling
 

C vs c++

  • 2. In computing, C is a general-purpose programming language initially developed by Dennis Ritchie between 1969 and 1973 at AT&T Bell Labs. C is a procedural language in which we focus on mathematical and algorithm. Simple C Program # include <stdio.h> int main(void) { printf(“Hello Worldn”); return 0; }
  • 3. C++ was originally developed to be the next version of C, not a new language. it was developed by Bjarne Stroustrup starting in 1979 at Bell Labs It is an object oriented programming language in which we focus on real life problem. Simple C++ Program #include <iostream.h> int main(void) { cout << “Hello Worldn”; return 0; }
  • 4. Differences C it is most stable for handling small programme. C++ it is for handling large programme. C it follows top down approach. C++ it flows bottom up approach.
  • 5. C Data in shareable mode. i.e. Data can be accessed by other function. C++ Data in non shareable mode. i.e. Data can not be accessed by other function. C It does not support function overloading (two functions may have the same name). C++ It support function overloading (function names must be unique). C Data is not secured in ‘c’ . C++ Data is secured in ‘c++’ .
  • 6. BASIC FEATURES OF OBJECT ORIENTED PROGRAMMING LANGUAGE (OOPS) OBJECT CLASS MESSEGE PASSING OOPS INERITANCE DYNAMIC POLYMORPHI BINDING SM
  • 7. OBJECTS Objects are basic runtime entity in object oriented system. When a program is executed, the objects interact by sending messages to one another . CLASS Classes are user defined data types and it behaves like built in types of programming language. It is the way to bind the data and function to gather in a single unit. INHERITANCE The mechanism of deriving a new class from an old class is called inheritance or derivation. The old class is known as base class while new class is known as derived class or sub class. The inheritance is the most powerful features of OOP.
  • 8. POLYMORPHISM Polymorphism is a Greek term which means ability to take more than one form. For example, + is used to make sum of two numbers as well as it is used to combine two strings. DYNAMIC BINDING Dynamic binding means link exist between procedure call and code to be execute at run time when that procedure is call. MESSAGE PASSING Objects can communicate with each others by passing message same as people passing message with each other. Message passing involves name of object, name of function (message) and information to be send.