Honeywell Papers: Sample Questions 13 - 14 of 18

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 13

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What is object oriented programming language?

Explanation

Object Oriented Programming (OOP) is a programming language model organized around objects rather than “actions” and data rather than logic. Historically, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data. It refers to a type of computer programming (software design) in which programmers define not only the data type of a, but also the types of operations (functions) that can be applied to the data structure. In this way, the data structure becomes an object that includes both data and functions. In addition, programmers can create relationships between one object and another. For example, objects can inherit characteristics from other objects.

Question number: 14

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What is inheritance?

Explanation

  • Inheritance in Object Oriented Programming can be described as a process of creating new classes from existing classes.
  • Inheritance allows us to define a class in terms of another class, which makes it easier to create and maintain an application. This also provides an opportunity to reuse the code functionality and fast implementation time.
  • New classes inherit some of the properties and behaviour of the existing classes. An existing class that is “parent” of a new class is called a base class. New class that inherits properties of the base class is called a derived class.