SlideShare a Scribd company logo
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++

More Related Content

What's hot

Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
Sivant Kolhe
 
Basics of c++ Programming Language
Basics of c++ Programming LanguageBasics of c++ Programming Language
Basics of c++ Programming Language
Ahmad Idrees
 
C basics
C   basicsC   basics
C introduction by thooyavan
C introduction by  thooyavanC introduction by  thooyavan
C introduction by thooyavan
Thooyavan Venkatachalam
 
Differences between c and c++
Differences between c and c++Differences between c and c++
Differences between c and c++
starlit electronics
 
C++ language basic
C++ language basicC++ language basic
C++ language basic
Waqar Younis
 
Chapter1 c programming data types, variables and constants
Chapter1 c programming   data types, variables and constantsChapter1 c programming   data types, variables and constants
Chapter1 c programming data types, variables and constantsvinay arora
 
Inline Functions and Default arguments
Inline Functions and Default argumentsInline Functions and Default arguments
Inline Functions and Default arguments
Nikhil Pandit
 
Introduction to c++
Introduction to c++Introduction to c++
Introduction to c++
Himanshu Kaushik
 
Functions in c
Functions in cFunctions in c
Functions in c
sunila tharagaturi
 
Oop c++class(final).ppt
Oop c++class(final).pptOop c++class(final).ppt
Oop c++class(final).pptAlok Kumar
 
Functions in C++
Functions in C++Functions in C++
Functions in C++
Mohammed Sikander
 
Introduction Of C++
Introduction Of C++Introduction Of C++
Introduction Of C++
Sangharsh agarwal
 
Control structure C++
Control structure C++Control structure C++
Control structure C++
Anil Kumar
 

What's hot (20)

Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Basics of c++ Programming Language
Basics of c++ Programming LanguageBasics of c++ Programming Language
Basics of c++ Programming Language
 
C PROGRAMMING
C PROGRAMMINGC PROGRAMMING
C PROGRAMMING
 
C AND DATASTRUCTURES PREPARED BY M V B REDDY
C AND DATASTRUCTURES PREPARED BY M V B REDDYC AND DATASTRUCTURES PREPARED BY M V B REDDY
C AND DATASTRUCTURES PREPARED BY M V B REDDY
 
C basics
C   basicsC   basics
C basics
 
C introduction by thooyavan
C introduction by  thooyavanC introduction by  thooyavan
C introduction by thooyavan
 
Differences between c and c++
Differences between c and c++Differences between c and c++
Differences between c and c++
 
C++ language basic
C++ language basicC++ language basic
C++ language basic
 
Chapter1 c programming data types, variables and constants
Chapter1 c programming   data types, variables and constantsChapter1 c programming   data types, variables and constants
Chapter1 c programming data types, variables and constants
 
Inline Functions and Default arguments
Inline Functions and Default argumentsInline Functions and Default arguments
Inline Functions and Default arguments
 
Intro to c++
Intro to c++Intro to c++
Intro to c++
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Unit4
Unit4Unit4
Unit4
 
Introduction to c++
Introduction to c++Introduction to c++
Introduction to c++
 
Functions in c
Functions in cFunctions in c
Functions in c
 
Oop c++class(final).ppt
Oop c++class(final).pptOop c++class(final).ppt
Oop c++class(final).ppt
 
Functions in C++
Functions in C++Functions in C++
Functions in C++
 
Introduction Of C++
Introduction Of C++Introduction Of C++
Introduction Of C++
 
C vs c++
C vs c++C vs c++
C vs c++
 
Control structure C++
Control structure C++Control structure C++
Control structure C++
 

Viewers also liked

Ppt of c++ vs c#
Ppt of c++ vs c#Ppt of c++ vs c#
Ppt of c++ vs c#
shubhra chauhan
 
Ppt of c vs c#
Ppt of c vs c#Ppt of c vs c#
Ppt of c vs c#
shubhra chauhan
 
C++ vs C#
C++ vs C#C++ vs C#
C++ vs C#
sudipv
 
Discussing Fundamentals of C
Discussing Fundamentals of CDiscussing Fundamentals of C
Discussing Fundamentals of C
educationfront
 
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
jatin batra
 
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
jatin batra
 
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
jatin batra
 
Intro to C++ Basic
Intro to C++ BasicIntro to C++ Basic
Intro to C++ Basic
Shih Chi Lin
 
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
eteaching
 
History of C/C++ Language
History of C/C++ LanguageHistory of C/C++ Language
History of C/C++ Language
Farid Hilal
 
Overview of c++ language
Overview of c++ language   Overview of c++ language
Overview of c++ language
samt7
 
Corrosion control
Corrosion controlCorrosion control
Corrosion controlZTE Nepal
 
Dot net guide for beginner
Dot net guide for beginner Dot net guide for beginner
Dot net guide for beginner
jayc8586
 
C sharp
C sharpC sharp
C sharp
Ahmed Vic
 
C++ to java
C++ to javaC++ to java
C++ to java
Ajmal Ak
 
Python basic
Python basicPython basic
Python basic
Mayur Mohite
 
3rd june
3rd june3rd june
Beginning Java for .NET developers
Beginning Java for .NET developersBeginning Java for .NET developers
Beginning Java for .NET developers
Andrei Rinea
 
A comparison between C# and Java
A comparison between C# and JavaA comparison between C# and Java
A comparison between C# and JavaAli MasudianPour
 

Viewers also liked (20)

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
 
Php i basic chapter 3
Php i basic chapter 3Php i basic chapter 3
Php i basic chapter 3
 

Similar to C vs c++

Oops concepts in c++ documentation
Oops concepts in c++ documentationOops concepts in c++ documentation
Oops concepts in c++ documentation
farouq umar
 
object oriented programming language fundamentals
object oriented programming language fundamentalsobject oriented programming language fundamentals
object oriented programming language fundamentals
ChaithraCSHirematt
 
Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++
Ankur Pandey
 
c++session 1.pptx
c++session 1.pptxc++session 1.pptx
c++session 1.pptx
PadmaN24
 
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
groversimrans
 
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...
Make Mannan
 
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
AKR Education
 
Basic Introduction to C++.pptx
Basic Introduction to C++.pptxBasic Introduction to C++.pptx
Basic Introduction to C++.pptx
ThankYesh
 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++
Manoj Kumar
 
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
 
C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]
Rome468
 
Lab 1.pptx
Lab 1.pptxLab 1.pptx
Lab 1.pptx
MohammedAlobaidy16
 
Principal of objected oriented programming
Principal of objected oriented programming Principal of objected oriented programming
Principal of objected oriented programming
Rokonuzzaman Rony
 
L6
L6L6
L6
lksoo
 
C++ with student management system project
C++ with student management system projectC++ with student management system project
C++ with student management system project
Kratik Khandelwal
 
C++Basics2022.pptx
C++Basics2022.pptxC++Basics2022.pptx
C++Basics2022.pptx
Danielle780357
 
The Differences Between C and C++
The Differences Between C and C++The Differences Between C and C++
The Differences Between C and C++
LingarajSenapati2
 
Principles of object oriented programing
Principles of object oriented programingPrinciples of object oriented programing
Principles of object oriented programing
Ahammed Alamin
 
C by balaguruswami - e.balagurusamy
C   by balaguruswami - e.balagurusamyC   by balaguruswami - e.balagurusamy
C by balaguruswami - e.balagurusamy
Srichandan Sobhanayak
 

Similar to 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
 
Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++
 
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
 
C by balaguruswami - e.balagurusamy
C   by balaguruswami - e.balagurusamyC   by balaguruswami - e.balagurusamy
C by balaguruswami - e.balagurusamy
 

More from ZTE Nepal

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

More from 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.