Skip to main content

Posts

Recent posts

Object oriented programming in C++ and Data structure

Object-oriented programming: Concept of object oriented programming- Data hiding, Data encapsulation, Class and Object, Abstract class and concrete, Polymorphism (Implementation of polymorphism using Function overloading as an example in C++) ; Inheritance, Advantages of object oriented programming over earlier programming methodologies, Implementaion of object oriented programming concepts in C++ Defination of a class, Members of a class -Data Members and member Functions ( methods), Using private and public visibility modes, default visibility mode (private); Member Function definition : inside class definition and outside class definition using scope resolution operator (::); Declaration of objects as instance of a class ; accessing members from object (s), Objects as function arguments-pass by value and pass by reference; Pointers : Introduction to pointers, Declaration and initialisation of pointers ; Dynamic memory allocation/deallocation operators : new, delete; Pointers and Ar...

C++ Revision Tour: introduction, C++ Basics(C++ character set and tokens)

1. C++ Revision Tour 1.1 INTRODUCTION :: The C++ programming language was developed at AT&T Bell Laboratories in the early 1980s by Bjarne Stroustrup. He found 'C' lacking for simulations and decided to extend the language by adding features from his favourite language, Simula 67. Simula 67 was one of the earliest object-oriented languages. Bjarne Stroustrup called it "C with classes" originally. The name C++ (Pronounced C plus plus) was coined by Rick Mascitti where "++" is the C increment operator. Ever since its birth, C++ evolved to cope with problems encountered by users, and through discussions at AT&T. However, the maturation of the C++ language was attested to by two events:  The formation of an ANSI (American National Standard institute) C++ committee  The publication of the Annotated C++ Reference Manual by Ellis and Stroustrup. The latest C++ standards document was issued by ANSI/ISO in year 2011 namely C++11 or formally C++0x . The m...