WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND
ENCAPSULATION?
PLEASE EXPLAIN IT.

Answer Posted / narender_niit

abstraction:
abstraction means providing the relevant information only
and hiding other information..

encapsulation:

encapsulation means capsuling of data in the class..in
encapsulation the data members are declared in a class.and
we u want to use that variables only the copy of the
variables goes there which we use in other public
classes.this generates the concept of information hiding.
encapsulation also provide scurity to the data variables

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use inheritance?

628


c++ program to swap the objects of two different classes

1756


What is meant by oops concept?

604


Which type does string inherit from?

608


What is polymorphism and example?

589






What is polymorphism and its types?

588


What is this pointer in oop?

550


What is an interface in oop?

591


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

2751


What do you mean by variable?

570


What is the oops and benefits of oops programming?

549


How do you define social class?

594


Can you inherit a private class?

629


Which is not an object oriented programming language?

534


What is polymorphism in oops?

555