what is encapsulation?
pros of encapsulation?
definition of inheritence
subclasses and superclasses
- classes can inherit attributes and methods from other classes
overloading
same method name, different parameters
overriding
same method name & parameters, in subclass/super class
polymorphism?
what is constructor
method that:
1. has same name as class name
2. no return type
what are 3 components of object
what are 3 components of classes
pros + cons of oop
pros:
1. encapsulation
- no repeat of code (less redundant)
- more security
- modularity
- abstraction
cons:
- not good for small projects
- learning curve
abstraction
hiding certain details and only showing essential info
modularity
breaking down program into smaller pieces so that changing one part of code doenst affect entire program
types of relationships (+ symbols)