Object Oriented Programming (OOP) using C++

Welcome in the course of 

Object Oriented Programming (OOP) 

using C++ Language

Object-Oriented Programming or "OOP" defines a program as a set of objects or resources to which commands are sent. An object-oriented language will define a data resource and send it to process commands. For example, the procedural programmer might say "Print(object)" while the OOP programmer might say "Tell Object to Print".

C++ is a combination of both procedural and  object oriented programming language. Therefore, C++ can be called hybrid language. It was developed by Bjarne Stroustrup in 1979. The earlier name of C++ was “C with classes”. C++ is a superset of C. C codes can be run by C++compiler but the compiler of C language cannot run the code of C++ language. The file extension of a c+ + program is *.CPP.

The programs are divided into classes and functions in the C++ programming language. C++ supports both user-defined and built-in data types. It contains 52 keywords. Objects cin and cout are used for standard input/output operations. Some important features that are supported by C++ language includes:

  • Boolean and String data types
  • Functions with default arrangements
  • Inline function
  • Declare variables anywhere in a function
  • Virtual and friend functions
  • Function and operator overloading
  • Pointers and references
  • new operator is use for memory allocation and delete operator for memory de-allocation
  • The use of Namespaces to avoid name collisions
  • Exception handling using try and catch blocks.

 

Download Mini-Project Report Format 

 

Lecture handouts:

Classes and Objects

No comments:

Post a Comment