introduction of cpp.
· Cpp programming language is developed by Bjarne stroustrup in the early 1980 at Bell Laboratories.
· Cpp is one type of object oriented language.
· It’s in used class is concept of structure these have first of all these called clss with c.
· Cpp extent ion denoted improvement in c.
Give the basic concept of cpp.
Object
· To combine both data and function in single unite is called object
· Object are basic runtime entities.
· Syntax
Class name object name;
Class
· Class is an expanded concept of data structure, it can hold both data and function.
· Class classname.
Data abstraction
· Classes use the concept of abstraction and are defined list of abstract attributes(data).
Data encapsulation
· both data and function in single unit is called data encapsulation .
inheritance
· code reusability is called inheritance.
Polymorphism
· ability to take more than one form is called polymorphism
dynamic binding
· it is also called dad binding
· it is run time polymorphism
message passing
· object communicate with each other by sending or receiving message.
What is the disadvantages of c ?
· In c not provide security
· We not easily find out which data used by which function
· Code length is more
· Boolean data type not available.
· Provide less functionality
· Function have unrestricted access of global data
