Đang chuẩn bị liên kết để tải về tài liệu:
Lecture Object oriented programming - Lecture no 01
Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG
Tải xuống
In this chapter you will learn about the following: The basic principles of object orientation; classes and objects; instance variables, attributes and associations; methods, operations and polymorphism; organizing classes into inheritance hierarchies; evaluating alternative implementations of simple designs in Java. | CSC241: Object Oriented Programming Lecture No 01 Aim of the course This course provides motivation of object oriented programming language in depth knowledge of the various concepts of object oriented programming and its implementation in C++ Course book Text book C++ How to program by Deitel and Deitel Reference books Waite Group’s Object oriented programming in C++, Robert Lafore Course outline Classes, Objects, Member functions, Objects as data types, Constructors and destructors, Overloaded constructor The default copy constructor, Returning objects from functions, objects and memory, Static class data, Constant member functions, Constant objects Base classes and derived classes, Derived class constructors, Overloading member functions, Scope resolution, Abstract classes, Public and private inheritance, Levels of inheritance, Multiple inheritance, Aggregation and composition New and delete operators, Pointers to objects, Virtual functions and late binding, Abstract classes and . | CSC241: Object Oriented Programming Lecture No 01 Aim of the course This course provides motivation of object oriented programming language in depth knowledge of the various concepts of object oriented programming and its implementation in C++ Course book Text book C++ How to program by Deitel and Deitel Reference books Waite Group’s Object oriented programming in C++, Robert Lafore Course outline Classes, Objects, Member functions, Objects as data types, Constructors and destructors, Overloaded constructor The default copy constructor, Returning objects from functions, objects and memory, Static class data, Constant member functions, Constant objects Base classes and derived classes, Derived class constructors, Overloading member functions, Scope resolution, Abstract classes, Public and private inheritance, Levels of inheritance, Multiple inheritance, Aggregation and composition New and delete operators, Pointers to objects, Virtual functions and late binding, Abstract classes and pure virtual functions, Virtual destructors, Virtual base classes, Friend functions and friend classes, Static functions, this pointer, Dynamic type information Motivation for exception handling, Try-catch block, Throwing an exception, Catching multiple exceptions Streams and files, Templates Marks distribution Assignments: 10% Quizzes: 15% Sessional exam 01: 10% Sessional exam 02: 15% Terminal Exam: 50% Introduction Five concepts in object oriented programming are: Object Classes Encapsulation Inheritance Polymorphism Simple analogy You are driving a car You can pressing accelerator pedal Someone has design it and built it Engineering drawings car Drawings also includes design for accelerator pedal to make car go faster We can say, pedal “hides” complex mechanism that make the car go faster Cont. Brake pedal “hides” the mechanism that slow the car Steering wheel “hides” the mechanism that turn the car and so on Simple “interfaces” like accelerator and brake pedal, steering wheel, .