recategorized by
4,217 views

2 Answers

2 votes
2 votes

The mechanism that binds code and data together and keeps them secure form outside world is known as Encapsulation (by  making class and writing data members and member functions)

1 votes
1 votes

(A) Data abstraction refers to, providing only essential information to the outside world and hiding their background details, i.e., to represent the needed information in program without presenting the details.

(B)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.

(C)Encapsulation is an Object Oriented Programming concept that binds together the data and functions that manipulate the data, and that keeps both safe from outside interference and misuse. Data encapsulation led to the important OOP concept of data hiding.

(D)The word polymorphism means having many forms. Typically, polymorphism occurs when there is a hierarchy of classes and they are related by inheritance.

polymorphism means that a call to a member function will cause a different function to be executed depending on the type of object that invokes the function.

 

Hence,Option(c)Encapsulation.

Reference:http://www.tutorialspoint.com/cplusplus/cpp_data_abstraction.htm

Answer:

Related questions

2 votes
2 votes
1 answer
2
go_editor asked Jul 7, 2016
1,261 views
Match the following with respect to java.util.$\ast$ class methods :$\begin{array}{clcl} \text{(a)} & \text{Bit Set} & \text{(i)} & \text{Time zone getTimezone()} \\ \t...
2 votes
2 votes
1 answer
3
1 votes
1 votes
1 answer
4
go_editor asked Jul 13, 2016
1,159 views
Which is the method used to retrieve the current state of a check box?get State ( )put State ( )retrieve State ( )write State ( )