IT1050-Object Oriented Concepts: Lecture-01 - Introduction To C++
IT1050-Object Oriented Concepts: Lecture-01 - Introduction To C++
1
IT1050| Object Oriented Concepts | Introduction| Anjalie Gamage
Agenda
• Introduction to Module
• Recalling C
• C to C++
3
IT1050| Object Oriented Concepts | Introduction| Anjalie Gamage
Learning Outcomes
• Understand and apply the basic concepts of Object
Oriented Programming
• Design solutions by identifying the classes and
relationships (Object Oriented Analysis and Design)
• Implement a solution to the given problem using the
C++ Language
4
IT1050| Object Oriented Concepts| Introduction|
Delivery
• Lectures
• 1 Hour per week
• Tutorial
• 1 Hour per week
• Labs
• 2 Hours per week
5
IT1050| Object Oriented Concepts| Introduction|
Assessment Criteria
• Continuous Assessment
6
IT1050| Object Oriented Concepts| Introduction|
Content
• Introduction to C++
• Introduction to OOP Concepts
• Abstraction
• Encapsulation
• Information Hiding
• Identifying classes and objects
• Object Oriented Design
• Noun Verb Analysis
• CRC Cards
• Introduction to Object Oriented Programming
7
IT1050| Object Oriented Concepts| Introduction|
Teaching Learning Activities
• Case Study - Library System
• Home work - Watching Videos
• Group work - Assignment 2
8
IT1050| Object Oriented Concepts| Introduction|
Academic Integrity Policy
• Are you aware that following are not accepted in SLIIT???
• Plagiarism - using work and ideas of other individuals intentionally or
unintentionally
• Collusion - preparing individual assignments together and submitting
similar work for assessment.
• Cheating - obtaining or giving assistance during the course of an
examination or assessment without approval
• Falsification – providing fabricated information or making use of such
materials
• From year 2018 the committing above offenses come with
serious consequences !
• See General support section of Courseweb for full information.
9
IT1050| Object Oriented Concepts| Introduction|
Reference
11
IT1050| Object Oriented Concepts| Introduction|
C vs C++
// C Program // C++ Program
#include <iostream>
#include <stdio.h>
int main ( )
void main ( void) {
{ std::cout<< “Hello World !“ ;
std::cout<< std::endl;
printf (“Hello World ! \n”);
return 0;
} }
14
IT1050| Object Oriented Concepts| Introduction|
Preprocessing Directives
#include <iostream>
• Lines begin with # are processed by the preprocessor before the program
is compiled.
• Notifies the preprocessor to include in the program the content of the
input/output stream header <iostream>
• “iostream” is a header file containing information used by the compiler
when compiling a program with output data to screen or input data from
the keyboard using c++ input/output stream
15
IT1050| Object Oriented Concepts| Introduction|
The main function
int main()
{
17
IT1050| Object Oriented Concepts| Introduction|
New Line
19
IT1050| Object Oriented Concepts| Introduction|
Reference
Chapter 01 & 02
20
IT1050| Object Oriented Concepts| Introduction|