recategorized by
790 views
0 votes
0 votes
Which one of the following fundamental features of the OOPs is not supported by 𝐶++?

(a) Persistence

(b) Delegation

(c) Genericity

(d) Data abstraction
recategorized by

1 Answer

2 votes
2 votes

Answer: Option A) Persistence is not supported by C++.

Most objects cease to exist when they go out of scope. This may be when the function in which they were created terminates. It may be when the container in which they reside is deleted. At any rate, they can be expected to disappear when the program exits. Persistent objects are those which survive between successive invocations of the program. A classic example of such an object is a database record.

C++ doesn't support persistence directly. c++ - what is the concept of Object-Persistence? - Stack Overflow

Delegation: When object of one class is used as data member in another class, such composition of objects is known as "Delegation".

Genericity: We can write a program that contains more than one version depending on the data types of the arguments provided at run time. For example we can write a program that can perform addition on integers, and the same program can also perform addition on floating point numbers. This feature allows declaration of variables without specifying exact data types. The compiler identifies the data at run time. The "template" feature of C++ allows this genericity.

Data abstraction: The act of representing the essential features without including the background details is called Data Abstraction.

CPP_R16_UNIT-I.PDF (kitsguntur.ac.in)

Related questions

0 votes
0 votes
0 answers
1
Sanjay Sharma asked May 7, 2016
963 views
0 votes
0 votes
1 answer
2
nadosha asked Apr 20
68 views
A constructor cannot be explicitly called by the client program. true or false?
0 votes
0 votes
0 answers
3
nadosha asked Apr 20
45 views
A program that includes the file containing a class declaration is called a ________ program of the class.
0 votes
0 votes
4 answers
4