Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.52 KB

README.md

File metadata and controls

53 lines (33 loc) · 1.52 KB

CPP-Programs

This repository contains some programs in C++ to understand most of the concepts of this language.

Basics of C++

  1. Hello world, namespaces and cout
  2. cin statement
  3. Function Overloading

Object Oriented Programming

Basics of Classes

  1. Declaring a class
  2. Two ways to define member functions
  3. Constructor
  4. Destructor
  5. Copy Constructor
  6. Static members

Inheritance

Shape class example

Polymorphism

  1. Constructor overloading
  2. Intro to Virtual functions
  3. Operator overloading

File Handling

  1. Reading from a file
  2. Writing to a file

Exception Handling

Division by zero exception

Memory Allocation in C++

New and delete operators

Templates

Template Function

Smaller of two values

Template Class (Generic Class)