OOPS
OOPS
com
https://www.rgpvonline.com https://www.rgpvonline.com
https://www.rgpvonline.com https://www.rgpvonline.com
[3] [4]
b) What do you mean by the term class and object? What is Object oriented programming ‘| inheritance H$s nrN>o H$s
the relation and difference between these two? Write an ‘yb g§H$ënZm H$s EH$ CXmhaU boH$a ì¶m»¶m H$a|& Multiple ,
example (syntax) to define a class in C++. Explain abstract
multilevel Ed§ hybrid inheritance H$mo aoIm{MÌ VWm {dݶmg Ho$
class and singleton class in brief.
Ûmam n[a^m{fV H$s{O¶o&
Class VWm object nX go Amn ³¶m g‘PVo h¡? BZ XmoZm| Ho$ ‘ܶ
b) Explain the concept of association an aggregation in
³¶m g§~Y§ Ed§ A§Va h¡? C++ ‘| class H$mo n[a^m{fV H$aZo Ho$ {bE object oriented approach. What is and Abstract class? Why
EH$ CXmhaU X| ({dݶmg g{hV)& Abstract class Ed§ singleton Abstract classes are used?
class H$s g§jon ‘| ì¶m»¶m H$s{O¶o&
Object oriented VarHo$ ‘| association Ed§ aggregation
4. a) What are the access modifiers? How many types of access g§H$ënZm H$s ì¶m»¶m H$a|& Abstract class ³¶m h¡? Abstract
modifiers are available in C++. Explain each one in detail
classes ³¶m| à¶moJ {H$¶o OmVo h¡?
and their role in implementing the data hiding in object
oriented programming.
6. a) Discuss Polymorphism in detail. What are the different
Access modifiers ³¶m h¢? C++ ‘| {H$VZo àH$ma Ho$ access
ways to implement Polymorphism in C++, discuss them
modifier CnbãY h¢? à˶oH$ {dñV¥V ê$n go Ed§ object oriented in brief. Give differences between function overloading
programming ‘| data hiding H$mo bmJw H$aZo ‘| CZH$s ^y{‘H$m H$s and function overriding (or method overriding) by writing
ì¶m»¶m H$s{O¶o& its syntax.
b) Explain the role of constructor and destructor in a class. Polymorphism H$mo {dñV¥V ‘| ~VmB¶o C++ ‘o§ Polymorphism
What are the different types of constructors in C++? H$mo bmJw H$aZo Ho$ {d{^ÝZ VarHo$ H$m¡Z-H$m¡Z go h¡? g§jno ‘| ~VmB¶o&
Write the appropriate syntax for the copy constructor and Function overloading Ed§ Function Overriding (AWdm
parameterized constructors.
method overriding) Ho$ ‘ܶ CZHo$ {dݶmg ~VmVo hþ¶o A§Va X|&
Class ‘| constructor Ed§ destructor H$s ^y{‘H$m H$s ì¶m»¶m
b) Write a C++ program to calculate the area of rectangle,
H$s{O¶o& C++ ‘| {H$VZo {^Þ-{^Þ àH$ma Ho$ constructors h¡?
square and circle using constructor overloading that
Copy constructor Ed§ Ho$m parameterized constructor Ho$ accepts input from the user and then shows the desired
{bE C{MV {dݶmg H$mo {bI|& result.
Constructor overloading H$m à¶moJ H$aVo hþE Am¶V, dJ© Ed§
5. a) Explain the fundamental concept behind inheritance in
object oriented programming by taking an example.
d¥Îm Ho$ joÌ’$b H$s JUZm H$aZo Ho$ {bE EH$ C++ program H$mo
Define multiple, multilevel and hybrid inheritance with {bI§o {Og‘| à¶moJH$Vm© go input àmßV {H$¶m Om¶o VWm BpÀN>V
diagram and syntax. n[aUm‘ {XIm¶m Om¶o&
CS/CT/CO-305-CBGS PTO
P.T.O. CS/CT/CO-305-CBGS PTO
Contd...
https://www.rgpvonline.com https://www.rgpvonline.com
https://www.rgpvonline.com https://www.rgpvonline.com
[5] [6]
7. a) What are the Exception and how they handled? What do b) Explain in detail about the object oriented methodology
you mean by Array Index Out of Bounds Exception and of designing any library management system. What are
Null Pointer Exception? What are the uses of keyword the various object and class diagram in it? Design and
try, catch and throw? Explain with an example. briefly explain them.
Exception ³¶m h¡ Ed§ {H$g àH$ma BZH$mo g§^mbm OmVm h¡? Array [H$gr nwñVH$mb¶ à~§Y V§Ì H$mo ~ZmZo Ho$ {bE object oriented
Index Out of Bounds Exception Ed§ Null Pointer Exception VarHo$ H$s {dñVma ‘| ì¶m»¶m H$s{O¶o& {d{^Þ àH$ma Ho$ object VWm
go Amn ³¶m g‘PVo h¡? try, catch Ed§ throw H$sdS>© H$m ³¶m class diagram Bg‘| ³¶m-³¶m h¡? g§jon ‘| ì¶m»¶m H$aVo hþE
à¶moJ h¡? CXmhaU Ho$ gmW ì¶m»¶m H$s{O¶o& BZH$mo ~ZmB¶o&
b) Explain the concept of multithreading in object oriented
programming approach? Writes its benefits. Discuss the ******
collection and its type. What is a collection class?
Object oriented programming Ho$ VarHo$ ‘| multithreading
g§H$ënZm H$s ì¶m»¶m H$s{O¶o& BgHo$ bm^m| H$mo {bIo§ Collection
Ed§ BgHo$ àH$mam| H$mo ~VmB¶o& Collection class ³¶m h¢?
https://www.rgpvonline.com https://www.rgpvonline.com