SlideShare ist ein Scribd-Unternehmen logo
1 von 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++

Weitere ähnliche Inhalte

Was ist angesagt?

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 introductionAKR Education
 
Fundamentals of c programming
Fundamentals of c programmingFundamentals of c programming
Fundamentals of c programmingChitrank Dixit
 
Python unit 2 as per Anna university syllabus
Python unit 2 as per Anna university syllabusPython unit 2 as per Anna university syllabus
Python unit 2 as per Anna university syllabusDhivyaSubramaniyam
 
Compiler vs interpreter
Compiler vs interpreterCompiler vs interpreter
Compiler vs interpreterParas Patel
 
Oop c++class(final).ppt
Oop c++class(final).pptOop c++class(final).ppt
Oop c++class(final).pptAlok Kumar
 
Module 05 Preprocessor and Macros in C
Module 05 Preprocessor and Macros in CModule 05 Preprocessor and Macros in C
Module 05 Preprocessor and Macros in CTushar B Kute
 
Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programmingavikdhupar
 
Datatype in c++ unit 3 -topic 2
Datatype in c++ unit 3 -topic 2Datatype in c++ unit 3 -topic 2
Datatype in c++ unit 3 -topic 2MOHIT TOMAR
 
Static typing vs dynamic typing languages
Static typing vs dynamic typing languagesStatic typing vs dynamic typing languages
Static typing vs dynamic typing languagesJawad Khan
 
Function overloading and overriding
Function overloading and overridingFunction overloading and overriding
Function overloading and overridingRajab Ali
 
OpenGurukul : Language : C Programming
OpenGurukul : Language : C ProgrammingOpenGurukul : Language : C Programming
OpenGurukul : Language : C ProgrammingOpen Gurukul
 
Storage classes in c language
Storage classes in c languageStorage classes in c language
Storage classes in c languagetanmaymodi4
 

Was ist angesagt? (20)

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
 
Tokens in C++
Tokens in C++Tokens in C++
Tokens in C++
 
File Handling in C++
File Handling in C++File Handling in C++
File Handling in C++
 
Differences between c and c++
Differences between c and c++Differences between c and c++
Differences between c and c++
 
Fundamentals of c programming
Fundamentals of c programmingFundamentals of c programming
Fundamentals of c programming
 
Function in C
Function in CFunction in C
Function in C
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Python unit 2 as per Anna university syllabus
Python unit 2 as per Anna university syllabusPython unit 2 as per Anna university syllabus
Python unit 2 as per Anna university syllabus
 
Compiler vs interpreter
Compiler vs interpreterCompiler vs interpreter
Compiler vs interpreter
 
Oop c++class(final).ppt
Oop c++class(final).pptOop c++class(final).ppt
Oop c++class(final).ppt
 
Module 05 Preprocessor and Macros in C
Module 05 Preprocessor and Macros in CModule 05 Preprocessor and Macros in C
Module 05 Preprocessor and Macros in C
 
Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programming
 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++
 
Datatype in c++ unit 3 -topic 2
Datatype in c++ unit 3 -topic 2Datatype in c++ unit 3 -topic 2
Datatype in c++ unit 3 -topic 2
 
Static typing vs dynamic typing languages
Static typing vs dynamic typing languagesStatic typing vs dynamic typing languages
Static typing vs dynamic typing languages
 
Function overloading and overriding
Function overloading and overridingFunction overloading and overriding
Function overloading and overriding
 
Lecture 1- History of C Programming
Lecture 1- History of C Programming Lecture 1- History of C Programming
Lecture 1- History of C Programming
 
OpenGurukul : Language : C Programming
OpenGurukul : Language : C ProgrammingOpenGurukul : Language : C Programming
OpenGurukul : Language : C Programming
 
Storage classes in c language
Storage classes in c languageStorage classes in c language
Storage classes in c language
 
C language unit-1
C language unit-1C language unit-1
C language unit-1
 

Andere mochten auch

difference between c c++ c#
difference between c c++ c#difference between c c++ c#
difference between c c++ c#Sireesh K
 
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 Ceducationfront
 
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 CENTREjatin 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 CENTREjatin 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 CENTREjatin batra
 
Intro to C++ Basic
Intro to C++ BasicIntro to C++ Basic
Intro to C++ BasicShih 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 eteachingeteaching
 
History of C/C++ Language
History of C/C++ LanguageHistory of C/C++ Language
History of C/C++ LanguageFarid 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
 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Languagesatvirsandhu9
 
Dot net guide for beginner
Dot net guide for beginner Dot net guide for beginner
Dot net guide for beginner jayc8586
 
C++ to java
C++ to javaC++ to java
C++ to javaAjmal Ak
 

Andere mochten auch (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
 
Introduction Of C++
Introduction Of C++Introduction Of C++
Introduction Of C++
 
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
 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
 
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
 

Ähnlich wie C vs c++

Oops concepts in c++ documentation
Oops concepts in c++ documentationOops concepts in c++ documentation
Oops concepts in c++ documentationfarouq umar
 
object oriented programming language fundamentals
object oriented programming language fundamentalsobject oriented programming language fundamentals
object oriented programming language fundamentalsChaithraCSHirematt
 
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.pptxPadmaN24
 
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 CENTERgroversimrans
 
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
 
Basic Introduction to C++.pptx
Basic Introduction to C++.pptxBasic Introduction to C++.pptx
Basic Introduction to C++.pptxThankYesh
 
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 aurangabadPysh1
 
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
 
Principal of objected oriented programming
Principal of objected oriented programming Principal of objected oriented programming
Principal of objected oriented programming Rokonuzzaman Rony
 
C++ with student management system project
C++ with student management system projectC++ with student management system project
C++ with student management system projectKratik Khandelwal
 
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 programingAhammed Alamin
 
Interoduction to c++
Interoduction to c++Interoduction to c++
Interoduction to c++Amresh Raj
 

Ähnlich wie 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...
 
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
 
Interoduction to c++
Interoduction to c++Interoduction to c++
Interoduction to c++
 

Mehr von 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
 

Mehr von 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.