python
standard data types
immutable
mutable
- dictionaris
object oriented programming
object is an real world entity such as pen ,chair,table,etc
object oriented programming is methodology or paradigma to design a program using classes and objet.
it simplyfies software development and maintainance by providing some concepts.
class:
Inheritence:
polymorphism:
Abstraction:
encapsulation:
Difference between pop and oop
pop | oop |
---|---|
It deals with algorithms | It deals with data |
programs are divided into functions | programs are divided into objects |
Most of the function share global data | data structures characterizes objects. |
data move from function to function | function that operate on data are bind to form classes |
functions are responsible for tranforming from one form to another | data is hidden cannot be accessed by out side functions |
It is top down approach | It is bottom up approach |
It needs very less memory | It needs more memory then pop |
It does not have any access specifiers | It has access specifiers like private,public and protected. |
It is less secure | It is more secure |
It follows no overloading | It follows the operator and function overloading |
Comments
Post a Comment