web analytics

August 2013

Is it possible to return an object from a function? Justify your answer with an example.

Return of an Object from a Function: Yes it is possible to return an object from a function. An object can be returned to the call of its function by another object. For the justification considering the following program, //Returning of object#include<iostream.h>class myclass{ int i; public: void set_i(int n){ i=n; /*Ln 3*/ } int get_i(){ …

Is it possible to return an object from a function? Justify your answer with an example. Read More »

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 …

Is it possible to pass an object from one function to another ─ justify from an example. 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 …

What is meant by the statement #include? 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 …

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

List a few areas of application of OOP concept or technology.

Great deal of excitement and interest in software engineers can be found in using OOP. Applications of OOP are gaining importance in many areas. The most important area is the user interface design such as windows. It has also got importance in real business systems as they are very complicated and use many methods and …

List a few areas of application of OOP concept or technology. 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, …

What are the main characteristics of Procedure Oriented Programming (POP)? 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 …

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

Scroll to Top