Get fully solved assignment. Buy online from website
online store
or
plz drop a mail with your sub code
we will revert you within 2-3 hour or immediate
Charges rs
125/subject and rs 625/semester only.
if urgent then call us on 08791490301, 08273413412
Summer
2015, ASSIGNMENT
PROGRAM
– BCA (REVISED FALL 2012)
SEMESTER
- 2
SUBJECT
CODE & NAME - BCA2030- OBJECT ORIENTED PROGRAMMING – C++
CREDIT
– 4 BK ID - B1641, MAX. MARKS - 60
Q1. Write short notes on:
a) Inheritance
b) Polymorphism 5+5 = 10
Answer:
A)
Inheritance
Inheritance
is one of the most powerful features of Object Oriented Programming Languages
that allows you to derive a class from an existing class and inherit all the
characteristics and behaviour of the
Q2. Differentiate between Classes
and Objects. Write an example program to represent a class and its object. 4+6=
10
Answer:
Classes
and objects are separate but related concepts. Every object belongs to a class
and every class contains one or more related objects.
A
Class is static. All of the attributes of a class are fixed before, during, and
after the execution of a
Q3. Describe operator overloading.
Which are the operators that cannot be overloaded?
5+5= 10
Answer:
Operator overloading is an interesting feature of C++ that allows programmers
to specify how various arithmetic, relational and many other operators work
with user defined data
Q4. What are the advantages of
Polymorphism? How it can be implemented? 5+5=10
Answer:
Advantages
·
Code is simpler to write (and read)
·
Uniform interface for clients, i.e.,
type specific details only in class code, not in the client code
·
Change in
·
Q5. Write a C++ program to swap two
numbers without using a temporary variable. 10
Answer:
1. /*
2. * C++ program to swap two numbers without using a temporary variable
3. */
Q6.
Write A C++ program to implement class rectangle and find its area.
Answer:
#include <iostream.h> #include<conio.h>
Get fully solved assignment. Buy online from website
online store
or
plz drop a mail with your sub code
we will revert you within 2-3 hour or immediate
Charges rs
125/subject and rs 625/semester only.
if urgent then call us on 08791490301, 08273413412
No comments:
Post a Comment