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

Is enum a class?

607


What is the difference between procedural programming and oops?

557


What is the full form of oops?

612


What are the 5 oop principles?

603


What is encapsulation in ict?

608






Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2036


What are two types of polymorphism?

612


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1395


What is oops and its features?

589


What is oops and why we use oops?

573


What do you mean by abstraction?

617


What is the difference between abstraction and polymorphism?

617


Please send ford technologies placement paper 2 my mail id

1658


What is the real life example of polymorphism?

609


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1639