polski

Urszula Libal


WUT

    

    

    

Object Oriented 

Programming



PWr


Object Oriented Programming


Course for the first year students of
Electronics and Telecommunications (Lab 30h)


There will be performed one task during each laboratory.


Credits: average of marks for the tasks performed during the laboratories (each lab), provided the quiz is passed. 

Absences:
Mark of the task will be reduced by one when absence is authorized and a quiz is passed. 
Mark of the task will be reduced by two, when the absence is unauthorized and  a quiz is passed.




Topics of classes:


  • pdf  Introduction    
  • pdf  Lab. 1.   Defining classes and creating objects    
    •                Quiz No. 1:
                     1. What is an instance of a class?
                     2. The default content of a class is private or public?

  • pdf  Lab. 2.   Constructors (two weeks)    
    •                Quiz No. 2:
                     1. What name must have a constructor of a class?
                     2. Can the constructor be placed in private section?
                     3. How many constructors can a class have?

                     Quiz No. 3:
                     1. Write a copy constructor of Index class.
                         For a copy of the object the value of variable Number     
                         should be larger by one, but the variable Name should                        be copied without any change.
                    
                            class Index
                            {
                                int Number;
                                char* Name;
                            };

  • pdf  Lab. 3.   Destructors    
    •                Quiz No. 4:
                     1. What name must have a destructor?
                     2. How many input parameters can a destructor have?

  • pdf  Lab. 4.   Overloading methods
  • pdf  Lab. 5.   Overloading operators    
    •                Quiz No. 5:
                     1. Which of these operators are unary,
                         and which are binary: < << = == + ++ - -- !
                     2. Which of the binary operators are left-associative,                                and which are right-associative?

  • pdf  Lab. 6.   Inheritance, virtual functions and abstract classes
  • pdf  Lab. 7.   Multiple and multigenerational inheritance
  • pdf  Lab. 8.   Handling exceptions. File operations
  • pdf  Lab. 9.   Project Management in Visual Studio
  • pdf  Lab. 10.  Graphical User Interface (two weeks)
    •                Handbook:

                     Pro Visual C++/CLI and the .NET 3.5 Platform
                     Stephen R. G. Fraser
                     Apress, 2008