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
What are the 4 pillars of oop?
What are the 4 main oop principles?
Why is static class not inherited?
Is oop better than procedural?
Why is polymorphism needed?
Get me an image implementation program.
Why do we need polymorphism in c#?
Is this job good for future? can do this job post grduate student?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is abstraction with example?
What is a class and object?
What is overriding in oops?
What is polymorphism in oops with example?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What are the three parts of a simple empty class?