C++ session 1 introduces object oriented programming concepts including objects, classes, data encapsulation, inheritance, polymorphism, dynamic binding, and message passing. Objects are the basic building blocks and are members of classes. Classes define user-defined data types that contain both code and data. Data encapsulation combines data and functions into a single unit called a class. Inheritance allows classes to inherit features from other classes without modifying them. Polymorphism allows functions to take on multiple forms based on argument types. Dynamic binding determines which code to run at runtime. Message passing involves sending requests to objects to execute procedures.
Introduction to C++ : Object Oriented Technology, Advantages of OOP, Input- output in
C++, Tokens, Keywords, Identifiers, Data Types C++, Derives data types. The void data
type, Type Modifiers, Typecasting, Constant
intro to c++, concepts of OOP, future scope in c++, project on student data administration, screen shot of c++ program and output screen on topic project on student data administration.
Introduction to C++ : Object Oriented Technology, Advantages of OOP, Input- output in
C++, Tokens, Keywords, Identifiers, Data Types C++, Derives data types. The void data
type, Type Modifiers, Typecasting, Constant
intro to c++, concepts of OOP, future scope in c++, project on student data administration, screen shot of c++ program and output screen on topic project on student data administration.
Procedural Vs Object Oriented Programming
Procedural Programming
Can be defined as a programming model which is derived from structured programming,
based upon the concept of calling procedure. In these models, a programmer uses procedures
or functions to perform a task.
Languages used in Procedural Programming: C , Pascal , Fortan etc.
Object Oriented Programming can be defined as a programming model which is based
upon the concept of objects. Objects contain data in the form of attributes and code in the
form of methods. OOP concept uses variables and methods as procedural programs do, but it
focuses on the objects that contain variables and methods
Languages used in Object Oriented Programming:
Java, C++, C#, Python , Ruby
09/08/2022 3
Object-Oriented Programming (OOP)
Object Oriented programming (OOP) is a programming paradigm that relies on the
concept of classes and objects. It is used to structure a software program into simple,
reusable pieces of code blueprints (usually called classes), which are used to create individual
instances of objects.
It is a programming paradigm that structures a software program according to objects.
Simply put, it creates objects that contain functions and data. This paradigm relies
greatly on the concept of classes and objects.
The main aim of OOP is to bind together the data and the functions that operate on them so
that no other part of the code can access this data except that function.
09/08/2022 4
Object And Class
Class:A class is basically user-defined data types that act as a
template for creating objects of the identical type. It represents
the common properties and actions (functions) of an object.
Object: A real-world entity that has state and behavior. Here,
state represents properties and behavior represents actions and
functionality. For example, a person, chair, pen, table, etc
Object takes space in the memory but
class does not take any space in the
memory. Class does not exist physically
but an object exists physically.
09/08/2022 5
OOP Principles
Encapsulation: the attributes of an entity are enclosed in itself. In other words, encapsulation
is when an object (inside a class) keeps its state private and only exposes the selected
information.This principle requires the ability to define some fields as either private or public.
Abstraction: hide important information in order to reduce complexity. It is when the user
only interacts with specific object’s methods and/or attributes. By hiding complex details from
the user, abstraction consequently reduces complexity.
09/08/2022 6
OOP Principles
Inheritance: as the name indicates, an entity can inherit attributes from other entities. More
precisely, parent classes can extend their attributes and behaviors to child classes, which also
means that this principle supports reusability.
Polymorphism: entities can have more than one form. Hence the ‘poly’. In sum,
polymorphism is when objects are designed to share behaviors. By overriding
What is Object-Oriented Programming?
The OOP programming approach is based on fundamental concepts of class and object.
OOP allows decomposition of a problem into a number of entities called objects and then builds data and functions around these objects.
There are many object-oriented programming languages including JavaScript, C++, Java, and Python.
It is programming style which is associated with concepts of class and object and various other concepts like:
Inheritance
polymorphism
abstraction
Encapsulation etc
Program are divided into small modules known as classes.
Function and data are tied together in an object.
C++ is an object-oriented programming language developed by Bjarne Stroustrup at AT&T Bell Lab in the year 1980. Initially it was named “C with classes” but later in 1983 the name changed to C++. It is an extension of C with..
Procedural Vs Object Oriented Programming
Procedural Programming
Can be defined as a programming model which is derived from structured programming,
based upon the concept of calling procedure. In these models, a programmer uses procedures
or functions to perform a task.
Languages used in Procedural Programming: C , Pascal , Fortan etc.
Object Oriented Programming can be defined as a programming model which is based
upon the concept of objects. Objects contain data in the form of attributes and code in the
form of methods. OOP concept uses variables and methods as procedural programs do, but it
focuses on the objects that contain variables and methods
Languages used in Object Oriented Programming:
Java, C++, C#, Python , Ruby
09/08/2022 3
Object-Oriented Programming (OOP)
Object Oriented programming (OOP) is a programming paradigm that relies on the
concept of classes and objects. It is used to structure a software program into simple,
reusable pieces of code blueprints (usually called classes), which are used to create individual
instances of objects.
It is a programming paradigm that structures a software program according to objects.
Simply put, it creates objects that contain functions and data. This paradigm relies
greatly on the concept of classes and objects.
The main aim of OOP is to bind together the data and the functions that operate on them so
that no other part of the code can access this data except that function.
09/08/2022 4
Object And Class
Class:A class is basically user-defined data types that act as a
template for creating objects of the identical type. It represents
the common properties and actions (functions) of an object.
Object: A real-world entity that has state and behavior. Here,
state represents properties and behavior represents actions and
functionality. For example, a person, chair, pen, table, etc
Object takes space in the memory but
class does not take any space in the
memory. Class does not exist physically
but an object exists physically.
09/08/2022 5
OOP Principles
Encapsulation: the attributes of an entity are enclosed in itself. In other words, encapsulation
is when an object (inside a class) keeps its state private and only exposes the selected
information.This principle requires the ability to define some fields as either private or public.
Abstraction: hide important information in order to reduce complexity. It is when the user
only interacts with specific object’s methods and/or attributes. By hiding complex details from
the user, abstraction consequently reduces complexity.
09/08/2022 6
OOP Principles
Inheritance: as the name indicates, an entity can inherit attributes from other entities. More
precisely, parent classes can extend their attributes and behaviors to child classes, which also
means that this principle supports reusability.
Polymorphism: entities can have more than one form. Hence the ‘poly’. In sum,
polymorphism is when objects are designed to share behaviors. By overriding
What is Object-Oriented Programming?
The OOP programming approach is based on fundamental concepts of class and object.
OOP allows decomposition of a problem into a number of entities called objects and then builds data and functions around these objects.
There are many object-oriented programming languages including JavaScript, C++, Java, and Python.
It is programming style which is associated with concepts of class and object and various other concepts like:
Inheritance
polymorphism
abstraction
Encapsulation etc
Program are divided into small modules known as classes.
Function and data are tied together in an object.
C++ is an object-oriented programming language developed by Bjarne Stroustrup at AT&T Bell Lab in the year 1980. Initially it was named “C with classes” but later in 1983 the name changed to C++. It is an extension of C with..
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
How to Create Map Views in the Odoo 17 ERPCeline George
The map views are useful for providing a geographical representation of data. They allow users to visualize and analyze the data in a more intuitive manner.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
What is the purpose of the Sabbath Law in the Torah. It is interesting to compare how the context of the law shifts from Exodus to Deuteronomy. Who gets to rest, and why?
3. Introduction
Object oriented programming is a principle of design and development of programs using
modular approach.
It provides advantage in creation and development of software for real life applications.
We are going to learn Basic concept, Advantages, and Technologies used in Object
Oriented Programming.
Some of the Object oriented programming languages are c++ ,java, c# and so on.
3
4. OOP was introduced to over come flaws in
the procedural approach to programming.
Such as lack of reusability and
maintainability.
Fundamental idea behind object oriented
languages is to combine into a single unit
both data and the functions that operate on
that data. Such a unit is called an Object.
4
8. Objects
• Objects are basic building block for
designing programs.
• They may represent a person, a place
or any item that the program must be
handle.
• Every object must be the member of a
particular class
8
9. Classes
9
Classes are user-defined data types and it behaves like built in types
of programming language.
Object contains code and data which can be made user definite type
using class.
Objects are variables of class.
Once a class has been defined we can create any number of objects
for that class .
A class is collection of objects of similar type.
10. 10
• We can create object of class
using following syntax,
• syntax : class-name object-name;
• Here class name is class which is
already created. Object name is
any user defined name. for
example, if student is class,
• Example : Student Deepak, Pavan;
• In example Deepak and Pavan are
name of objects for class student.
We can create any number of
objects for class.
12. Encapsulation
12
Data encapsulation combines data and functions
into a single unit called class. Data encapsulation
prevents direct access to data.
DATA
METHODS
Object
Data Encapsulation
13. Inheritance
13
In OOP, the concept of Inheritance provides the
idea of reusability.
This means that we can add additional features to
an existing class without modifying it.
Super class
Sub class 1 Sub class 2
15. 15
Polymorphism
Polymorphism is a feature of object oriented
program programming where a function can
take multiple forms based on type of
arguments.
The ability of an operator and function to
take multiple forms is known as
polymorphism.
16. 16
Dynamic binding
Binding is the process of connecting one program to
another. Dynamic binding means code associated with
procedure call is known only at the time of program
execution routine.
17. Message passing
17
In OOP, processing is done by sending message to
objects. A message for an object is request for
execution of procedure.
22. Find more maps at slidescarnival.com/extra-free-resources-icons-and-maps 22
1. OVERVIEW of C++
23. C++
C++ is a statically typed, compiled, general-
purpose, case-sensitive, free-form
programming language that supports
procedural, object-oriented, and generic
programming.
C++ is regarded as a middle-level language, as
it comprises a combination of both high-level
and low-level language features.
23
24. Presentation design
24
▷ C++ was developed by Bjarne Stroustrup
starting in 1979 at Bell Labs in Murray Hill,
New Jersey, as an enhancement to the C
language and originally named C with
Classes but later it was renamed C++ in
1983.
▷ C++ is a superset of C, and that virtually any
legal C program is a legal C++ program.
25. Standard Libraries
25
▷ The core language giving all the building blocks
including variables, data types and iterals , etc.
▷ The C++ Standard Library giving a rich set of
functions manipulating files, strings, etc.
▷ The Standard Template Library (STL) giving a rich
set of methods manipulating data structures, etc.
Standard C++ consists of three important parts:
26. Learning C++
The purpose of learning a programming language is
to become a better programmer; that is, to become
more effective at designing and implementing new
systems and at maintaining old
ones.
C++ supports a variety of programming styles. You
can write in the style of Fortran, C, Smalltalk, etc., in
any language. Each style can achieve its aims
effectively while maintaining runtime and space
efficiency.
27. 27
Use of C++
C++ is used by hundreds of thousands of
programmers in essentially every application
domain.
C++ is being highly used to write device drivers and
other software that rely on direct
manipulation of hardware under real-time constraints.
C++ is widely used for teaching and research because
it is clean enough for successful
teaching of basic concepts.