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 only.
if urgent then call us
on 08791490301, 08273413412
Winter
2015, ASSIGNMENT
PROGRAM
– BCA (REVISED FALL 2012)
SEMESTER
- 2
SUBJECT
CODE & NAME - BCA2030- OBJECT ORIENTED PROGRAMMING – C++
CREDIT
– 4BK 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
Q2. Differentiate between pass by
value and pass by reference 5+5 10
Answer.
There are two ways to
pass values to a function through arguments. These two methods are explained
below with examples.
Pass By Value
Example:
void check
(int x)
{
{
//
Q3. Differentiate between
Constructors and Destructors.
Answer: Constructor:
- Constructor is Used to Initialize the Object.
- Constructor
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
Q5. Differentiate between
Containers and Iterators 5+5= 10
Answer: Containers
STL
provides a number of container types, representing objects that contain other
objects. The STL contains sequence containers and associative containers. The
standard sequence containers include vector,
Q6. Describe the two basic
exception handling models. 5+5= 10
Answer:
If you encounter an exceptional situation in your code – that is, one where you
don’t have enough information in the current context to decide what to do – you
can send information about the error into a larger context by creating an object
containing that information and “throwing” it out of your current context. This
is called throwing an exception.
Here’s what it looks like: throw
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 only.
if urgent then call us
on 08791490301, 08273413412
No comments:
Post a Comment