When a private constructer is being inherited from one
class to another class and when the object is instantiated
is the space reserved for this private variable in the
memory??

Answers were Sorted based on User's Feedback



When a private constructer is being inherited from one class to another class and when the object ..

Answer / vatsa

yes.

Is This Answer Correct ?    1 Yes 4 No

When a private constructer is being inherited from one class to another class and when the object ..

Answer / nk

constructors cannot be private.

Is This Answer Correct ?    2 Yes 5 No

When a private constructer is being inherited from one class to another class and when the object ..

Answer / varsha vilas kalebag

yes

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More OOPS Interview Questions

There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?

3 Answers   Microsoft,


write a program that takes input in digits and display the result in words from 1 to 1000

0 Answers   Wipro,


write knight tour problem which is present in datastructure

0 Answers  


What is Object and Class? What are the differences between them?

5 Answers  


What is encapsulation with real life example?

0 Answers  






WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.

7 Answers   ETH,


What is stream in oop?

0 Answers  


In which Scenario you will go for Interface or Abstract Class?

1 Answers   InfoAxon Technologies,


what is the basic concept of inheritance?

9 Answers  


Why is abstraction used?

0 Answers  


What do you mean by public, private, protected and friendly?

3 Answers   CA,


what is difference b/w object based and object oriented programming language?

18 Answers   Chaitanya, College School Exams Tests, Educomp, IBM, Infosys, Telko,


Categories