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 6059where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?
2 9693Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
1772
Why do we use class in oops?
What is the difference between procedural programming and oops?
What is the fundamental idea of oop?
Why multiple inheritance is not allowed?
What are the two different types of polymorphism?
#include
Which type does string inherit from?
Why is oop better than procedural?
Why polymorphism is used in oops?
What is polymorphism give a real life example?
What is destructor oops?
What is the significance of classes in oop?
What is protected in oop?
What is meant by multiple inheritance?
What is encapsulation in simple terms?