What is the difference between class and structure?
Answer Posted / guest
structure is a value type class is reference type,
struct Memory will be on stack and class Memory stored on
Heap,
struct not suports inheritance and class can?
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
Which type does string inherit from?
What is overriding in oop?
What is polymorphism what are the different types of polymorphism?
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.
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is the diamond problem in inheritance?
What is a class oop?
Whats oop mean?
What is abstraction in oop?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is use of overloading?
What is polymorphism explain its types?
Can an interface inherit a class?
Why do we use oop?
What are classes oop?