Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. In C#, a class can inherit from multiple classes. only have one subclass. implement multiple interfaces. only implement one interface. 2. Which of the

1. In C#, a class can

inherit from multiple classes.
only have one subclass.
implement multiple interfaces.
only implement one interface.

2. Which of the following is NOT the major feature in OOP (Objected-Oriented Programming)?

Encapsulation
Inheritance
Polymorphism
Generic

3. Which keyword is used to prevent a class from being inherited?

abstract
sealed
virtual
new

4. Which of the following is TRUE in C#?

In subclass, user can add new fields as well as deleting fields from superclass.
Methods declared as abstract don't have method body
Classes defined sealed can be inherited.
A superclass cannot have a superclass.
A base class can only be inherited once.

5. Which of the following is TRUE for an abstract class?

All methods in an abstract class must define as abstract
All methods in an abstract class cannot be implemented.
Static method cannot be defined as abstract.
Sealed keyword can be used for an abstract method.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago