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
Templates mean
write string class as your own class in java without using any built-in function
What are the 4 main oop principles?
What does enum stand for?
How Do you Code Composition and Aggregation in C++ ?
Why do we use polymorphism in oops?
What is encapsulation with real life example?
What is polymorphism and why is it important?
What is difference between multiple inheritance and multilevel inheritance?
What is abstract class in oop?
What is the difference between procedural programming and oops?
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 polymorphism and types?
What are the benefits of oop?
What is encapsulation selenium?