Presentation is loading. Please wait.

Presentation is loading. Please wait.

3 Fundamentals of Object-Oriented Programming

Similar presentations


Presentation on theme: "3 Fundamentals of Object-Oriented Programming"— Presentation transcript:

1 3 Fundamentals of Object-Oriented Programming

2 3 Pillars of O-O Paradigm
1. Encapsulation 2. Inheritance 3. Polymorphism

3 Encapsulation A class or object contains both data (state) and the methods that use the data.

4 Inheritance One class can completely reuse (inherit) the structure of another class, including both attributes and methods.

5 What's Not Inherited a) constructors - they are specific to one class
b) static methods? - you can invoke them via subclass name.

6 Polymorphism We can invoke a method (behavior) of an object without knowing the actual type of object that will perform the method (behavior).


Download ppt "3 Fundamentals of Object-Oriented Programming"

Similar presentations


Ads by Google