1 / 6

3 Fundamentals of Object-Oriented Programming

3 Fundamentals of Object-Oriented Programming. 3 Pillars of O-O Paradigm. 1. Encapsulation 2. Inheritance 3. Polymorphism. Encapsulation. A class or object contains both data (state) and the methods that use the data. Inheritance.

Download Presentation

3 Fundamentals of Object-Oriented Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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).

More Related