Your SlideShare is downloading. ×
C vs c++
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

C vs c++

135
views

Published on


0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
135
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. ANDWITH FEATURES OF OOPS
  • 2. 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; }
  • 3. 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; }
  • 4. 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.
  • 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 CLASSMESSEGEPASSING OOPS INERITANCE DYNAMIC POLYMORPHI BINDING SM
  • 7. 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.
  • 8. 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.