Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Object oriented have all 4 pillars while Object based have only 3 pillars.
Inheritance is not present in Object based Language.
data hiding: the complete hiding of data from the outside class. It is used private
keyword
Abstraction: the act of representing the essential details and hiding the
background details.
friend function:
it a function which access the data and methods of private variable outside the
class.
Modifier:
1) access modifier
a) private--- with in the class but ouside the class
b) protected--- with in the classes and subclasses(parent and child)
c) public--- anywhere in the package,subpackage and outside the package
d) default----- packages and subpackages
2) Non access modifier
1) static
2) final
3) abstract
polymorphism:
Method Overriding: same method name and same parameter in different class that
follow IS-A relationship(Inheritance)
HAS-A(aggreation)