2. Features of OOP
1.Class
2.Object
3.Data Abstraction
4.Encapsulation
5.Inheritence
6.Polymorphism
7.Dynamic Binding
2/14/2018
2
3. CLASS
A class is a blueprint or prototype, that defines the
variables and the methods common to all objects of
a certain kind.
Static variable- which contain information that is
shared by all the instances of the class.
Static method- which can be invoked directly from
the class.
2/14/2018
3
10. Advantages of OOP
2/14/2018
10
1.It gives stress on data items Rather on functions.
2.Offers code reusability.
3.Highly beneficial to solve complex program.
4.Makes it easy to maintain and modify existing
code.
11. Disadvantages of OOP
2/14/2018
11
1.classes are overly generalised.
2.Needs proper planning and proper design for OOP.
3.design is tricky.
4.Relationship between classes becomes artificial at
times.
12. DIFFERENCE BETWEEN POP AND OOP
2/14/2018
12
POP OOP
1.THE STRESS IS PUT ON FUNCTION
RATHER THAN THE DATA.
1.THE STRESS IS PUT ON DATA
RATHER THAN ON FUNCTION.
2.IT ALLOWS THE DATA TO FLOW
FREELY THROUGHOUT THE
PROGRAM.
2.THE DATA IS RESTRICTED TO A
SPECIFIC PROGRAM AREA.
3.IT DOES NOT HAVE ANY ACCESS
SPECIFIER
3.IT HAS 3 ACCESS SPECIFIERS VIZ.
public , private, protected.
4.IT FOLLOWS TOP-DOWN
PROGRAMMING APPROACH.
4.IT FOLLOWS BOTTOM UP
PROGRAMMING APPROACH.