Step 1

Introduction OOP

Objectives
After Step 1 you should know the background of the object-oriented development model. You have got an introduction to phases of program development and ways to model programs, and what characterizes the structured and the object-oriented model. With some rehearsal of previous course elements, you should now be able to to promote program quality through good programming style and coding standard. Above all, you should be well acquainted with the use of functions, as well as with references and pointers as parameters in function calls.

The main goal of step 1 is for you to understand the concepts of class and object, meaning you will be familiar with the work process to construct classes and create objects in the C++ language. You will also have a brief understanding of how to design classes with some simpler “tools” for this within Software Engineering.

The step will give a thorough knowledge of constructors and destructors, as well as basic principles for initiating and managing class members. Important to understand is also the computer’s internal work with temporary objects, constructor calls and various type conversions. Accordingly, you should through proactive programming know how to prevent problems of this nature.

Contents
Step 1 provides a thorough introduction to object-oriented programming concepts, as well as repetition of key concepts from the structured programming model. Start by reading the course book page 6-9, for a general introduction to object-orientation in C++! The step theory is then read primarily in chapter 11 and 12.

Concepts that are covered:

  • Types of software development models and comparisons
  • The concepts of Software Engineering and UML
  • The concepts of class and object
  • Header file (class.h), implementation file (class.cpp) and program file (main.cpp)
  • Compiling and linking
  • Design rules for the classes
  • Constructors and destructors
  • Constructors – special types used internally by the system
  • State and methods
  • Abstract properties
  • Computation order and temporary objects
  • Member Initialization List

Welcome to CoursePress

en utav Linnéuniversitets lärplattformar. Som inloggad student kan du kommunicera, hålla koll på dina kurser och mycket mer. Du som är gäst kan nå de flesta kurser och dess innehåll utan att logga in.

Läs mer lärplattformar vid Linnéuniversitetet

Student account

To log in you need a student account at Linnaeus University.

Read more about collecting your account

Log in LNU