oops cse lab manual

33
https://www.scribd.com/doc/244495572/Lab-Manual-CPP LAB MANUAL C++ PROGRAMMING LAB 3CS10

Upload: raj

Post on 18-Jan-2016

239 views

Category:

Documents


0 download

TRANSCRIPT

https://www.scribd.com/doc/244495572/Lab-Manual-CPP

LAB MANUALC++ PROGRAMMING LAB3CS10

INDEXS. NO.TITLEPAGE NO.

1.To write a simple program for understanding of C++ program structure without any CLASS declaration. Program may be based on simple input output, understanding of keyword using.3

2.Write a C++ program to demonstrate concept of declaration of class with public & private member, constructors, object creation using constructors, access restrictions, defining member functions within and outside a class. Scope resolution operators, accessing an objects data members and functions through different type of object handle name of object, reference to object, pointer to object, assigning class objects to each other.5

3.Program involving multiple classes (without inheritance) to accomplish a task. Demonstrate composition of class.9

4.Demonstration Friend function friend classes and this pointer.13

5.Demonstration dynamic memory management using new & delete & static class members.17

6.Demonstration of restrictions an operator overloading, operator functions asmember function and/ or friend function, overloading stream insertion and stream extraction, operators, overloading operators etc.23

7.Demonstrator use of protected members, public & private protected classes, multi-level inheritance etc.40

8.Demonstrating multiple inheritance, virtual functions, virtual base classes, abstract Classes.47

Experiment No.-1AIM: To write a simple program for understanding of C++ program structure without any CLASS declaration. Program may be based on simple input output, understanding of keyword using.ALGORITHM1. Start the program.2. No need to declare the CLASS.3. Start with the use of using keyword.4. Start the main block of the program and print Hello World! .5. End of the program.PROGRAM#include

using namespace std;

int main(){cout