1. The default access modifier of the class is private due to the OO-encapsulation concept.
2. The finally block is a block of code that must be executed in the program even if an exception occurred.
3. Declaring a class creates one object of a new data type.
4. Property contains Set accessory for retrieving an object field and the Get accessory for setting the stored value.
5. The constructors are used for initializing an object.
6. We can take object from struct but can’t do it with stack.
7. If I take object from static class its automatically will run its constructor.
8. The delegate is used to pass method as a parameter and can hold method of the same signature.
9. Can you allow class to be inherited, but prevent the method from being over-ridden?
10. The keyword virtual means that you can overload method?
11. Can we put stack inside struct but we can’t put struct inside stack
12. BankAccount [] acctArray=new BankAccount [500];
This means that you will declare and construct 500 objects.
13. Only class types can contain destructors I can’t do it with struct
14. Can I create class inside other class?
15. When you use inheritance to create a class you save time because you need not to recreate field, properties and method that have already been created for the original class.
16. A child class inherits all public and protected members of all its base class.
17. A class can inherits a struct but the struct can only implements interfaces.
18. The class can inherits from one parent and implements more than one interface.
19. A child class cannot use the private members of its parent directly.
20. When you override a method in a child class from a parent class and call this method from a child class object the parent class method executed first then the overridden method in the child.
21. This reference refers to the parent class
22. Can I make abstract static class
23. Can we create abstract method in side sealed class?
24. We must define a default constructor in the parent class.
25. The destructor is a special method that is called when an object destroyed.
26. I remove any object by using object = nothing
27. We can create an object from an abstract class but the sealed class can be inherited only.
28. An interface describes the “what” part of the contract and the classes that
Implement the interface describe “How”.
29. The method overloading is a type of polymorphism
30. We can have more than one try block but we must has only one catch
