search
Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
5 votes
924 views

Match the following concepts and their best possible descriptions.

  Concept   Description
i. overloading a. allows to define a class to have properties of another class
ii. friend b. defining a set of similar functions
iii. constructor c. used in dereferencing
iv. protected d. used to give a non-member function access to the private parts of an object
v. this e. a function which is automatically called when an object is created
vi. inheritance f. allows a derived class to have access to the private parts of the base class
    g. a pointer to the object associated with the current function
    h. used to obtain object persistence
  1. i-b, ii-d, iii-e, iv-f, v-g, vi-a
  2. i-c, ii-a, iii-e, iv-d, v-h, vi-f
  3. i-c, ii-f, iii-h, iv-a, v-g, vi-d
  4. i-b, ii-e, iii-c, iv-f, v-g, vi-s
in Object Oriented Programming
edited by
924 views

2 Answers

8 votes
 
Best answer
(A) is the answer. All are straight from definitions.

selected by
1 vote

ii.Friends are functions or classes declared with the friend keyword.
A non-member function can access the private and protected members of a class if it is declared a friend of that class. That is done by including a declaration of this external function within the class, and preceding it with the keyword friend : (d)

v. ‘this’ is a reference variable that refers to the current object. : (g)

Suitable option : (A)
 

Answer:

Related questions

5 votes
2 answers
1
389 views
Consider the class of object oriented languages. Which of the following is true? Pascal is an object oriented language. Object oriented languages require heap management. Object oriented languages cannot be implemented in language C. Object oriented languages are more powerful than declarative programming languages. Parallelism cannot be realized in object oriented languages.
asked Oct 26, 2015 in Object Oriented Programming makhdoom ghaya 389 views
10 votes
5 answers
2
2.3k views
Which one of the following are essential features of an object-oriented programming language? Abstraction and encapsulation Strictly-typedness Type-safe property coupled with sub-type rule Polymorphism in the presence of inheritance I and II only I and IV only I, II and IV only I, III and IV only
asked Sep 22, 2014 in Object Oriented Programming Kathleen 2.3k views
2 votes
2 answers
3
633 views
A software project has four phases P1, P2, P3 and P4. Of these phases, P1 Is the first one and needs to be completed before any other phase can commence. Phases P2 and P3 can be executed in parallel. Phase P4 cannot commence until both P2 and P3 are completed. ... that can be spent on crashing so that ALL paths are critical are, respectively. 100 and 1000 100 and 1200 150 and 1200 200 and 2000
asked Nov 2, 2014 in IS&Software Engineering Ishrat Jahan 633 views
2 votes
2 answers
4
442 views
A software project has four phases P1, P2, P3 and P4. Of these phases, P1 Is the first one and needs to be completed before any other phase can commence. Phases P2 and P3 can be executed in parallel. Phase P4 cannot commence until both P2 and P3 are completed. The optimistic, most likely, ... and the slack of P2 are, respectively, P1-P2-P4, 1 day P1-P3-P4, 1 day P1-P3-P4, 2 days P1-P2-P4, 2 days
asked Nov 2, 2014 in IS&Software Engineering Ishrat Jahan 442 views
...