logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the syntax to inherit from a class in C#?


  • Correct Answer
  • When a class is derived from another class, then the members of the base class become the members of the derived class The access modifier used while accessing members of the base class specifies the access status of the base class members inside the derived class The syntax to inherit a class from another class in C# is as follows: class MyNewClass : MyBaseclass 


  • Technology problems


    Search Results


    • 1. Does .NET support multiple inheritance?
    • Discuss
    • 2. In which namespace, all .NET collection classes are contained?
    • Discuss
    • 3. What are the main components of .NET Framework?
    • Discuss
    • 4. What is .NET Framework?
    • Discuss
    • 5. Define authentication and authorization.
    • Discuss
    • 6. How can you prevent a class from overriding in C# and Visual Basic?
    • Discuss
    • 7. Explain ADO.NET in brief.
    • Discuss
    • 8. What are the usages of the Command object in ADO.NET?
    • Discuss
    • 9. What are the usages of the Command object in ADO.NET?
    • Discuss
    • 10. What is Dynamic Language Runtime (DLR)?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment