PROGRAMMING IN C++ A.Sujatha. M.Sc.,M.Phil.,P.G.D.C.A, M.Mohana Malar. M.Sc., M.Phil,
Object Oriented Programming Object Oriented programming treats data as a critical element in the program development and does not allow it to flow freely around the system. OOP allows decomposition of a problem into a number of entities called objects and then builds data and functions around these objects.
Basic Concepts of OOP Objects Classes Data abstraction and encapsulation Inheritance Polymorphism Dynamic binding Message passing
Basic Data Types User Defined type Structure Union Class Enumeration Built in type IntegralType Int Char Void FloatingType Float Double Derived type Array Function Pointer Reference
Function Dividing a program into functions is one of the major principles of top-down, structured programming. Another advantage of using functions is that it is possible to reduce the size of a program by calling and using them at different places in the program
Function Prototyping The prototype describes the function interface to the compiler by giving details such as the number and type of arguments and the type of return values. Function prototype is a declaration statement in the calling program and is of the following form: type function- name (argument-list);
Inline Function One of the objectives of using functions in a program is to save some memory space, which becomes appreciable when a function is likely to be called many times. One solution to this problem is to use macro definitions, popularly known s macros. C++ has a different solution to this problem. To eliminate the cost of calls to small functions, C++ proposes a new feature called inline function.
Inline Function When a function is declared inline the compiler replaces the function call with the respective function code. Normally, a small size function is made as inline.
Function Overloading Overloading refers to the use of the same thing for different purposes. This means that we can use the same function name to create functions that perform a variety of different tasks. This is known as function prototyping. Here, the function would perform different operations depending on the argument list in the function call
Thank you

Programming in c++ ppt

  • 1.
    PROGRAMMING IN C++ A.Sujatha.M.Sc.,M.Phil.,P.G.D.C.A, M.Mohana Malar. M.Sc., M.Phil,
  • 2.
    Object Oriented Programming ObjectOriented programming treats data as a critical element in the program development and does not allow it to flow freely around the system. OOP allows decomposition of a problem into a number of entities called objects and then builds data and functions around these objects.
  • 3.
    Basic Concepts ofOOP Objects Classes Data abstraction and encapsulation Inheritance Polymorphism Dynamic binding Message passing
  • 4.
    Basic Data Types UserDefined type Structure Union Class Enumeration Built in type IntegralType Int Char Void FloatingType Float Double Derived type Array Function Pointer Reference
  • 5.
    Function Dividing a programinto functions is one of the major principles of top-down, structured programming. Another advantage of using functions is that it is possible to reduce the size of a program by calling and using them at different places in the program
  • 6.
    Function Prototyping The prototypedescribes the function interface to the compiler by giving details such as the number and type of arguments and the type of return values. Function prototype is a declaration statement in the calling program and is of the following form: type function- name (argument-list);
  • 7.
    Inline Function One ofthe objectives of using functions in a program is to save some memory space, which becomes appreciable when a function is likely to be called many times. One solution to this problem is to use macro definitions, popularly known s macros. C++ has a different solution to this problem. To eliminate the cost of calls to small functions, C++ proposes a new feature called inline function.
  • 8.
    Inline Function When afunction is declared inline the compiler replaces the function call with the respective function code. Normally, a small size function is made as inline.
  • 9.
    Function Overloading Overloading refersto the use of the same thing for different purposes. This means that we can use the same function name to create functions that perform a variety of different tasks. This is known as function prototyping. Here, the function would perform different operations depending on the argument list in the function call
  • 10.