template and exception handling introduction class template class template with multiple parameter functions template function template with multiple parameter Member function templates
generic programming(Templates)
rethrowing an exception
specifying exception
general form
catch all exceptions
catching mechanism
multiple catch statements
throwing mechanismexception handling
synchronous exceptions
synchronous exceptions
exception handling mechanism
function template with multiple parameters
function templates
class template with multiple parameters
templates are classified into two types - function template
- class template
the template declared for a classes are called class templates
--------------------------------------------------------------Unit 5--------------------------------------------------------------
write a program to over load arithametic operators on complex number using friend function
write a program to overload arithmetic operator on complex number using Member function
overloading binary operator using friends
Syntax for binary operator definition (outside the class)
binary operator overloading
Syntax for binary operator( inside a class)
unary minus operator using a friend function
it is possible to overload unary operator using a friend function as follows :
friend void operator-( space &S)
overloading unary operator in c++
unary operator overloading
Syntax for unary operator (inside a class)
Syntax for unary operator (outside a class)
General Form
concept of operator overloading
rules to be followed for operator overloading
overloading
operator overloadin
rules for virtual function
virtual function
runtime polymorphism using virtual function
Static and dynamic building
static linking
compile time polymorphism
early binding
Static Binding
pointer to derived classes
creating array of object using pointer
pointer to member operator
pointer to object
declareation of pointer
declaration of object and pointer to class item
member difference operator
pointer to member declare
pointer to member operator
pointer to member operator
unit 4 pointer virtual function and polymorphism
introduction to memory management
dynamic memory allocation and deallocation (new and delete)
new operator
delete operator
hierarchical inheritance
hybrid inheritance
multiple inheritance
multilevel inheritance
single inheritance
privately inherited
protected inherited
publicly inherited
types of inheritance
single
multilevel
multiple inheritance
hybrid inheritance
hierarchical inheritance
inheritance
colon
destructors
multiple constructors in a class
copy constructor
constructor are of three type
default constructor
parameter is constructor
copy constructor
unit 3
Constructor destructor and inheritance
characteristics of constructor
friend class
friend function
a friend function possesses certain special characteristics as follows
pass by reference
write a program to swap values of two objects
pass by address
object as function arguments
pass by value
static Member function
arrays of objects
static class members
static data member
syntax
situation where inline does not work
memory allocation for objects
inline function
definition
necessity of inline function
general form
scope resolution operator
scope
local scope
Global Scope
accessing member: dot operator is used to access member of class
unit 2
functions classes and objects
access control
private
Public
Protected
break
continue
unconditional control statement
goto statement
for loop it is also and entry control loop that provide more concese structure
loop control statements or repeatations
while statement
do while statement
if else ladder
the switch statement or multiway selection
nesting of if else statement
decision making statement
simple if statement
if else statement
insertion and extraction operator
control statement
sequential control statement
conditional control statements
pointer to member operator
manipulator
pointer to member operator
operators in C++
scope resolution operator
scope
local scope
Global scope
pointer to member declarator
one's complement or bitwise not
the size of operator
the comma operator
unary operator
bitwise shift right operator
bitwise shift left operator
bitwise operator
bitwise &(and)operator
bitwise or operator
bitwise exclusive or operator
shift operator
conditional operator or ternary operator
ternary operator required to operate side operate
assignment operator
simple assignment
compound assignment
increment and decrement operators
local operators
relational operators
string constants orstring literal
escape sequence for backslash character constant
decimal integer constant
octal integer
hexadecimal integer
floating point constant or real constant exponent
exponent of scientific notation
mantissa
exponent
E or e
character constant
single character constant
ASCII
rules for declaring variable
variable declaration
keywords
constants
rules integer constants
Boolean data type c99 added Boolean true false type which is defined in the <stdbool.h>
void type
derived data types
user defined data type
C++ Tokens
identifier
example of valid identifier
example of invalid identifier
variables
memory required or storrarge size in bytes
character data type
floating point types
integer data type
signed bit(MSB BIT)
unsigned integer
data types
main function section
documentation section
linking section
definition section
Global declaration section
Member function
subprogram or function section
dynamic binding
message passing
benefits of object oriented programming
principal or feature of object oriented programming
encapsulation
data abstraction
polymorphism
inheritance
dynamic binding
message passing
unit1
concept of object oriented programming
privately inherited
protected inherited
publicly inherited
Comments
Post a Comment