Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

1. What is object-oriented programming (OOP)?

2. What is a class?

3. What is an object?

4. What is the relationship between a class and an object?

5. Explain the basic features of OOPs.

6. How can you prevent your class to be inherited further?

7. What is the index value of the first element in an array?

8. Can you specify the accessibility modifier for methods inside the interface?

9. Is it possible for a class to inherit the constructor of its base class?

10. How is method overriding different from method overloading?

11. Can you declare an overridden method to be static if the original method is not static?

12. Why is the virtual keyword used in code?

13. Can you allow a class to be inherited, but prevent a method from being overridden in C#?

14. Explain the concept of constructor?

15. Can you inherit private members of a class?

16. Does .NET support multiple inheritance?

17. What is the syntax to inherit from a class in C#?

18. How can you prevent a class from overriding in C# and Visual Basic?

19. What are abstract classes? What are the distinct characteristics of an abstract class?

20. Give a brief description of properties in C# and the advantages that are obtained by using them
in programs.

21. Explain different types of inheritance.

22. What do you mean by data encapsulation?

23. What is the difference between procedural and object-oriented programming?

24. What are the different ways a method can be overloaded?

You might also like