What is the difference between class and structure?
Answer Posted / konankiswetha
class is a slow access because of heap memory. But struct
is a faster in access because of stack memory.
values are initialize at the time of declaration in class
but not in struct.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Why is polymorphism important in oop?
Why polymorphism is used in oops?
How to improve object oriented design skills?
Can private class be inherited?
What are properties in oop?
What is the difference between inheritance and polymorphism?
What is encapsulation in simple terms?
What is oops and why we use oops?
what are the different types of qualifier in java?
What is basic concept of oop?
What is polymorphism and why is it important?
Why do we use inheritance?
Why is static class not inherited?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is constructor overloading in oop?