web analytics

Is it possible to pass an object from one function to another ─ justify from an example.

Passing Objects:An object can be used as a function argument in the following two ways, pass-by-value pass-by-reference Using the first option given above we pass the value of an object to a function where the value of the used object will not change, but only be used. Use of the second will change the object … Read more

What is meant by the statement #include?

#include<iostream>:This is a directive which causes the preprocessor to add the contents of iostream, which is a header file and must be added above all of a program where input/output statements has been used. We will include the header file with the statement                                                           #include <iostream> The iostream package automatically defines a variable (an … Read more

What are the basic features of OOP (Object Oriented Programming).

Object Oriented Programming is programming concept which is focused on object rather than actions and data rather than logic. To design and to use system, OOP offers some outstanding features including the followings, Basic Features of OOP: Emphasis on data rather than procedure. Programs are divided into small parts called object. Data structures are designed … Read more

What are the main characteristics of Procedure Oriented Programming (POP)?

Procedural or Procedure Oriented Programming (POP): 

As the name implies, Procedure Oriented Programming contains step by step procedure to execute. Here, the problems get decomposed into small parts and then to solve each part one or more functions are used. Thus in POP approach, the problem is viewed as a sequence of things to be done, such as, input taking, calculating and displaying. The primary focus stays on functions which will be used to accomplish each task.

Read more

“POP provides emphasis on doing things, but OOP on the data”─ Do you agree with this statement? Justify your answer.

“POP provides emphasis on doing things, but OOP on the data”

Yes, I agree with the given statement, “POP provides emphasis on doing things, but OOP on the data”.

Justification of acceptance

In the case of a large program created using the concept of Procedure Oriented Programming, sometimes we declare some Global Variables which will be used by all the functions of the program. As we know that variable generally defines memory locations, thus in the case of a global variable,

Read more

What is Object Oriented Programming (OOP)?

Object Oriented Programming (OOP):  Object Oriented Programming is programming concept which is focused on object rather than actions and data rather than logic.  Object Oriented Programming concept is a way to remove some faults or limitations of POP (Procedure Oriented Programming). It puts much importance on data and does not allow data to move freely … Read more