tailieunhanh - Lecture Visual programming: Chapter 18 - Muhammad Bilal Zafar

The following will be discussed in this chapter: Writing a grammar, lexical vs syntactic analysis, eliminating ambiguity, elimination of left recursion, left factoring, non-context-free language constructs, top down parsing, recursive decent parsing, first & follow. | LESSON 18 Overview of Previous Lesson(s) Over View 3 Inheritance Inheritance is an essential part of OOP It is the process of creating new classes, called derived classes, from existing or base classes. The derived class inherits all the capabilities of the base class but can also add its own functionality. Reusability Extensibility Data hiding Overriding Over View 4 Access Modifiers: Public Private Protected Members of a class that are protected can only be accessed by member functions of the class, and by friend functions of the class. Over View. 5 Over View 6 Virtual Functions: In OOP a virtual function / method is a function / method whose behavior can be overridden within an inheriting class by a function with the same signature. Virtual functions ensure that the correct function is called for an object, regardless of the expression used to make the function call. Over View 7 Polymorphism It is an OOP feature that allows values of different data types to be handled using a | LESSON 18 Overview of Previous Lesson(s) Over View 3 Inheritance Inheritance is an essential part of OOP It is the process of creating new classes, called derived classes, from existing or base classes. The derived class inherits all the capabilities of the base class but can also add its own functionality. Reusability Extensibility Data hiding Overriding Over View 4 Access Modifiers: Public Private Protected Members of a class that are protected can only be accessed by member functions of the class, and by friend functions of the class. Over View. 5 Over View 6 Virtual Functions: In OOP a virtual function / method is a function / method whose behavior can be overridden within an inheriting class by a function with the same signature. Virtual functions ensure that the correct function is called for an object, regardless of the expression used to make the function call. Over View 7 Polymorphism It is an OOP feature that allows values of different data types to be handled using a uniform interface. The concept of parametric polymorphism applies to both data types and functions. Over View 8 Polymorphism A function that can be applied to values of different types is known as a polymorphic function. A data type that can appear to be of a generalized type is designated polymorphic data type like the generalized type from which such specializations are made. Over View 9 Polymorphism TODAY’S LESSON 10 Contents Debugging Program Bugs Common Bugs Basic Debugging Operations Setting Breakpoints Setting Trace points CLR Programming Generic Functions Defining Functions Using Functions 11 Debugging 12 Bugs are the errors in our program. Debugging is the process of finding and eliminating bugs. Some facts about bugs: Almost every program contain bugs that we need to expose, find, and eliminate. A program bug is not necessarily apparent. If it is apparent programmer may not know where it is in source code. Even when a programmer know roughly where it is, it may not be