Friday, December 29, 2023

bca , mca ,management,09 , 08

 Chapter-5 C++ :



 Classes and Objects Q.1. What is C++? Ans.: Released in 1985, C++ is an object-oriented programming language created by Bjarne Stroustrup. C++ maintains almost all aspects of the C language, while simplifying memory management and adding several features - including a new datatype




 known as a class (you will learn more about these later) - to allow object-oriented programming. C++ maintains the features of C which allowed for low-level memory access but also gives the programmer new tools to simplify memory management. C++ used for : C++ is a powerful general-purpose programming language. It can be used to create small programs or large applications. It can be used to make CGI scripts or console-only DOS programs. C++ allows you to create programs to do almost




 anything you need to do. The creator of C++, Bjarne Stroustrup, has put together a partial list of applications written in C++. Q.2. What is difference between C & C++? Ans.: C does not have a class/object concept. C++ provides data abstraction, data encapsulation, Inheritance and Polymorphism. C++ supports all C syntax. In C passing value to a function is "Call by Value" whereas in C++ its "Call



 by Reference". File extension is .c in C while .cpp in C++.(C++ compiler compiles the files with .c extension but C compiler can not!).