• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
C vs c++
 

C vs c++

on

  • 292 views

 

Statistics

Views

Total Views
292
Views on SlideShare
292
Embed Views
0

Actions

Likes
0
Downloads
9
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    C vs c++ C vs c++ Presentation Transcript

    • ANDWITH FEATURES OF OOPS
    • In computing, C is a general-purpose programminglanguage initially developed by Dennis Ritchie between1969 and 1973 at AT&T Bell Labs. C is a procedural language in which we focus onmathematical and algorithm. Simple C Program # include <stdio.h> int main(void) { printf(“Hello Worldn”); return 0; }
    • C++ was originally developed to be the nextversion of C, not a new language. it was developedby Bjarne Stroustrup starting in 1979 at Bell Labs It is an object oriented programming language inwhich we focus on real life problem.Simple C++ Program #include <iostream.h> int main(void) { cout << “Hello Worldn”; return 0; }
    • DifferencesC it is most stable for handling smallprogramme.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 CLASSMESSEGEPASSING OOPS INERITANCE DYNAMIC POLYMORPHI BINDING SM
    • OBJECTS Objects are basic runtime entity in object oriented system. When aprogram is executed, the objects interact by sending messages to oneanother .CLASS Classes are user defined data types and it behaves like built intypes of programming language. It is the way to bind the data andfunction to gather in a single unit.INHERITANCE The mechanism of deriving a new class from an old class iscalled inheritance or derivation. The old class is known as base classwhile new class is known as derived class or sub class. The inheritance isthe most powerful features of OOP.
    • POLYMORPHISM Polymorphism is a Greek term which means ability to take more than oneform.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 beexecute at run time when that procedure is call.MESSAGE PASSING Objects can communicate with each others by passing message same aspeople passing message with each other. Message passing involves name of object,name of function (message) and information to be send.