Definition
Object :- object is an instance of class . object is a real world entity like chair , pen , mobile .
Object is an entity that has a state and behavior .
state means data and behavior means functionality.
Class:- class is the blueprint of an object . class is user define data type . class leads OOPs which hold data member & member function which is accessed and used by creating an instance of class in C++.
Scope resolution Operator:- In Programming language , scope is an enclosing context where value and expression are associated . The scope resolution operator is help to identify one specify the context to which and identifier refer , particularly by specifying a namespace .
Constructor :-It is used to make an instance of class that has a same name as class. it used to be set value of member of an object or user define value or default value.
Destructor :- Destructor is used to destroy the value of object , it clear space which occupied by object.
Function :- A function is group of statement that perform a task .
the function declaration tell to compiler about return type , function name and parameter.
Friend function :- friend function is a friend of given class that give a same access to method of private and public attributes of class.
syntex :- Return type function name (arguments )
Inheritance :- It is mechanism of basing an object or class upon another object or class.
i.e. one object is depending another object . implementation should be same.
Here first class is base class and second class is Derive class.
Base class
class A{
}
Derive class
class b: visibility(like public or private)A{
}
Type of inheritance:-single inheritance,
multi level inheritance,
multiple inheritance, multipath inheritance , Hierarchical inheritance ,
hybrid inheritance,
Polymorphism :- polymorphism means many fornm of a single obhect . like animal is first class and dogs , sat are another one with sound and attributes ,it writes same as inheritance.
Function overloading :- It mans one functioin is overload by second function I.e. if one statement is exist before second statement so compile execute second statement.
Operator:- Operator are used to sum , divide , product etc
there are following types-
Arithmetic operator
logical operator
comparison operator
Virtual function :- A virtual function is member of function that you redefine in derive classes.
Ehin you refer to a derived class object using a ponter ot a reference of base class, you can call a virtual function for that object and execute the derives class version of the function.
Datastructure:- data structure is data organisation , management and storage format that enables efficient access and modification more precisely, the data structure is collection of data values,
the relation among them and function or operator that can be applies to data
Function prototype :-It define the up coming function above the main function i.e. what we define in above main function, will be coming after function prototype declaration or main function .
syntex :- type function name (argument);
int sum (int a , int b);
Destructor :- Destructor is used to destroy the value of object , it clear space which occupied by object.
Function :- A function is group of statement that perform a task .
the function declaration tell to compiler about return type , function name and parameter.
Friend function :- friend function is a friend of given class that give a same access to method of private and public attributes of class.
syntex :- Return type function name (arguments )
Inheritance :- It is mechanism of basing an object or class upon another object or class.
i.e. one object is depending another object . implementation should be same.
Here first class is base class and second class is Derive class.
Base class
class A{
}
Derive class
class b: visibility(like public or private)A{
}
Type of inheritance:-single inheritance,
multi level inheritance,
multiple inheritance, multipath inheritance , Hierarchical inheritance ,
hybrid inheritance,
Polymorphism :- polymorphism means many fornm of a single obhect . like animal is first class and dogs , sat are another one with sound and attributes ,it writes same as inheritance.
Function overloading :- It mans one functioin is overload by second function I.e. if one statement is exist before second statement so compile execute second statement.
Operator:- Operator are used to sum , divide , product etc
there are following types-
Arithmetic operator
logical operator
comparison operator
Virtual function :- A virtual function is member of function that you redefine in derive classes.
Ehin you refer to a derived class object using a ponter ot a reference of base class, you can call a virtual function for that object and execute the derives class version of the function.
Datastructure:- data structure is data organisation , management and storage format that enables efficient access and modification more precisely, the data structure is collection of data values,
the relation among them and function or operator that can be applies to data
Function prototype :-It define the up coming function above the main function i.e. what we define in above main function, will be coming after function prototype declaration or main function .
syntex :- type function name (argument);
int sum (int a , int b);
No comments:
Post a Comment