Lecture : Advance Programming (Object Oriented in C)
Object-oriented programs use all the features of procedural programs you just read about: they contain variables that are operated on by instructions written in sequence, selection, and loop statements.
However, object-oriented programming requires a different way of thinking and adds several new concepts to programming:
» You analyze the objects with which you are working—both the attributes of those objects and the tasks that need to be performed with and on those objects.
» You pass messages to objects, requesting the objects to take action.
» The same message works differently (and appropriately) when applied to the various objects.
» A method can work appropriately with different types of data it receives, without the need for separate method names.
» Objects can assume or inherit traits of previously created objects, thereby reducing the time it takes to create new objects.
» Information hiding is more complete than in procedural programs.
The basic principles behind using object-oriented programming techniques involve:
» Objects
» Classes
» Inheritance
» Polymorphism
Each of these principles is complex. As you work through the lessons and exercises in this text, you will gain mastery of these concepts as they apply to C++. For now, the following sections provide a brief overview of each concept.
The advance programming in C (OO) based on 14 Chapter below:
CHAPTER 1 AN OVERVIEW OF OBJECT-ORIENTED PROGRAMMING AND C++
CHAPTER 2 EVALUATING C++ EXPRESSIONS
CHAPTER 3 MAKING DECISIONS
CHAPTER 4 PERFORMING LOOPS
CHAPTER 5 UNDERSTANDING ARRAYS, STRINGS, AND POINTERS
CHAPTER 6 USING C++ FUNCTIONS
CHAPTER 7 USING CLASSES
CHAPTER 8 CLASS FEATURES AND DESIGN ISSUES
CHAPTER 9 UNDERSTANDING FRIENDS AND OVERLOADING OPERATORS
CHAPTER 10 UNDERSTANDING INHERITANCE
CHAPTER 11 USING TEMPLATES
CHAPTER 12 HANDLING EXCEPTIONS
CHAPTER 13 ADVANCED INPUT AND OUTPUT
CHAPTER 14 ADVANCED TOPICS
You can download full chapter from this link: Full_Ebook_OOP_in_C
0 komentar: