OBJECT ORIENTED PROGRAMMING CIS 3100

13 list and define the two types of polymorphism

Info icon This preview shows pages 3–5. Sign up to view the full content.

View Full Document Right Arrow Icon
13. List and define the two types of Polymorphism. • Operator Overloading – The process of making an operator to exhibit different behaviors at different instances. • Function Overloading – Using a single function name to perform different types of tasks. The same function name can be used to handle different number and different types of arguments. 14. State Dynamic Binding. Binding refers to the linking of procedure call to the code to be executed in response to the call. Dynamic Binding or Late Binding means that the code associated with a given procedure call is known only at the run-time. 15. Define Message Passing. Objects communicate between each other by sending and receiving information known as messages. A message to an object is a request for execution of a procedure. Message passing involves specifying the name of the object, the name of the function and the information to be sent. 16. List out some of the benefits of OOP. • Eliminate redundant code • Saves development time and leads to higher productivity • Helps to build secure programs • Easy to partition work • Small programs can be easily upgraded to large programs • Software complexity can easily be managed
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
17. Define Object Based Programming language. Object Based Programming is the style of programming that primarily supports encapsulation and object identity. Languages that support programming with objects are known as Object Based Programming languages. They do not support inheritance and dynamic binding. 18. List out the applications of OOP. • Real time systems • Simulation and modeling • Object oriented databases • Hypertext, Hypermedia and expertext • AI and expert systems • Neural networks and parallel programming • Decision support and office automation systems • CIM/CAM/CAD systems 19. Define C++. C++ is an object oriented programming language developed by Bjarne Stroustrup. It is a super set of C. Initially it was known as “C with Classes”. It is a versatile language for handling large programs. 20. What are the input and output operators used in C++? The identifier cin is used for input operation. The input operator used is >>, which is known as the extraction or get from operator. The syntax is, cin >> n1; The identifier cout is used for output operation. The input operator used is <<, which is known as the insertion or put to operator. The syntax is, cout << “C++ is better than C”; 21. What is the return type of main ()? The return type of main () is integer i.e. main () returns an integer type value to the operating system. Therefore, every main () should end with a return (0) statement. It’s general format is, int main () { ………… return 0; } 22. List out the four basic sections in a typical C++ program. • Include files • Class declaration • Member functions definition • Main function program 23. Define token. What are the tokens used in C++?(Nov/Dec 2011) The smallest individual units in a program are known as tokens. The various tokens in C++ are keywords, identifiers, constants, strings and operators.
Image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern