PPT-CS2102: Lecture on Abstract Classes and Inheritance

Author : cheryl-pisano | Published Date : 2017-05-05

Kathi Fisler How to Use These Slides These slides walk you through how to share common code ie create helper methods across classes I recommend you download the

Presentation Embed Code

Download Presentation

Download Presentation The PPT/PDF document "CS2102: Lecture on Abstract Classes and ..." is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

CS2102: Lecture on Abstract Classes and Inheritance: Transcript


Kathi Fisler How to Use These Slides These slides walk you through how to share common code ie create helper methods across classes I recommend you download the starter file posted to the website and make the edits in the slides step by step to see what happens for yourself. abstract Factory Pattern. CSC 313 – Advanced Programming Topics. What Is the Factory Method?. Creation details hidden . by . AbstractCreator. Does effective job of . limiting . concrete knowledge. Factory Method Intent. Lecture 8: Iterators. Agenda. Ch7. Inheritance, Abstract Classes and Interfaces. Generators. Ch8. Iterators. Using Vector iterators. Defining Iterators. Review of Object-Oriented Concepts in JAVA. Object-Oriented Concepts supported by JAVA.. Object Oriented Programming Inheritance. Like father, like son. Objectives. 2. Introducing inheritance through creating subclasses. Improve code reusability. Allowing overriding to replace the implementation of an inherited method. Systems Programming. Inheritance. Introduction. Base Classes and Derived Classes. Five Examples of Base Class and Derived Class Relationships. Constructors and Destructors in Derived Classes. Systems Programming . James Sturtevant | Senior Technical Evangelist, Microsoft. Object Oriented Practices. Course Topics. Object. Oriented Practices. 01 | Encapsulation. 05 | Generics. 02 | Inheritance. 06 | Delegates Events and Lambdas. Kathi Fisler. How to Use These Slides. These slides walk you through how to share common code (i.e., create helper methods) across classes. I recommend you download the starter file (posted to the website) and make the edits in the slides, step by step, to see what happens for yourself. “Patterns are discovered, not invented”. Richard Helm. What’s a pattern?. A pattern is a named abstraction from a concrete form that represents a recurring solution to a particular problem. . Categories of Patterns. Dr. Mark L. Hornick. 1. Consider a (badly written) generic Duck class. //Duck daffy = new Duck(. Duck.MALLARD. , “daffy”);. //Duck . donald. = new Duck(. Duck.REDHEAD. , “. donald. ”);. //Duck . Inheritance. Introduction. Base Classes and Derived Classes. Five Examples of Base Class and Derived Class Relationships. Constructors and Destructors in Derived Classes. Systems Programming . academy.zariba.com. 1. Lecture Content. Fundamental Principles of OOP. Inheritance. Abstraction. Encapsulation. 2. 1. Fundamental Principles of OOP. 3. Inheritance. Inherit members from parent class. academy.zariba.com. 1. Lecture Content. Polymorphism. Cohesion. Coupling. 2. Fundamental Principles of OOP. 3. Inheritance. Inherit members from parent class. Abstraction. Define and execute abstract actions. Like father, like son. Objectives. 2. Introducing inheritance through creating subclasses. Improve code reusability. Allowing overriding to replace the implementation of an inherited method. [CS1020 Lecture . Inheritance. Template Method Pattern. Factory Method Pattern. 2. Class Reuse. Two forms of class reuse:. Class implementation inheritance. “extends” in Java. Different than “implements”, which is “interface inheritance”. 1. 2. Abstract Classes and Abstract Methods. 2. GeometricObject. Circle. Rectangle. 3. abstract method in abstract class . 3. An abstract method cannot be contained in a . nonabstract. class. . If a subclass of an abstract superclass does not implement all the abstract methods, the subclass must be defined abstract. .

Download Document

Here is the link to download the presentation.
"CS2102: Lecture on Abstract Classes and Inheritance"The content belongs to its owner. You may download and print it for personal use, without modification, and keep all copyright notices. By downloading, you agree to these terms.

Related Documents