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??
Answer Posted / kamlesh
How do u expect a private part of a class to be inheritable
Do u have any code to support your views
I am ready to solve the same
Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
What do you mean by abstraction?
What is difference between inheritance and polymorphism?
What is the real time example of inheritance?
What does I oop mean?
Why do we use oops?
What is the oops and benefits of oops programming?
Can we create object of abstract class?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
When not to use object oriented programming?
What is constructor overloading in oop?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
Why is static class not inherited?
What is the point of oop?
What are oops methods?
What is abstraction in oop?