Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

SWAMI VIVEKANANDA INSTITUTE OFMODERNSCIENCE

NAME : Arijit Maity


ROLL NO : 26401222041
REG. NO : 222641010019
YEAR : 2nd SEM : 1st

STREAM :BACHELOR OF COMPUTER APPLICATION


PAPER NAME : Object Oriented Programming
PAPER CODE : BCAC301
TOPIC NAME : Difference between Encapsulation &
Inheritance
COLLEGE CODE : 264
Encapsulation Inheritance

Encapsulation binds the data and the Inheritance enables new classes to
functions that operate on that data into receive or inherit the properties and
a single unit. methods of existing classes.

It supports Data Hiding. It supports code reusability.

It keeps data safe from outside It allows us to do hierarchical


interference. classification of data.
▪ https://www.knowledgeboat.com/question/differentiate-
encapsulation-and-inheritance--19013257334489572

You might also like