OOSD Assignment 5
OOSD Assignment 5
5thKM Stone Delhi, Meerut Road, Near Raj Nagar Extension Road, Ghaziabad, UP-201003
Approved by AICTE, N. Delhi & Affiliated to Dr. A.P.J. Abdul Kalam Technical University, Lucknow
NBA Accredited Program (B. Tech- ECE, IT) & B. Pharma
Department of CSE(AIML)
CO 2 Understand, analyze and apply the role of overall modeling concepts (i.e. K2, K3
System, structural)
CO 3 Understand, analyze and apply oops concepts (i.e. abstraction, inheritance) K2,K3, K4
CO 4 Understand the basic concepts of C++ to implement the object oriented K2, K3
concepts
Assignment – 5
S.No. Question CO
What is Pointer in C++? Define const pointers. What is the usage of the pointer
1 CO5
in C++? What is the size of a void pointer in C? Demonstrate it.
What does the inheritance mean in C++? What is containership? How does it
2 differ from inheritance? Explain. Write a program to demonstrate how CO5
ambiguity is avoided in a single inheritance using scope resolution operators.
6 What are the differences between a C++ Struct and C++ Class? CO5
What is the difference between a pointer and reference? When should we use
7. CO5
them?