adplus-dvertising
frame-decoration

Question

Which among the following is an advantage of using classes over structures of C?

a.

Functions are restricted

b.

Functions can’t be defined

c.

Functions can also be encapsulated

d.

Functions can have more security

Answer: (c).Functions can also be encapsulated

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which among the following is an advantage of using classes over structures of C?

Similar Questions

Discover Related MCQs

Q. Which class represents the most abstracted information?

Q. If a database have to be maintained using OOP, to store the details of each employee in a company, which would be the best choice among the following?

Q. If a class have two data members and two functions to add those two numbers and to subtract them, which among the following is most efficient if the programmer wants to implement multiplication too?

Q. To group all the brands of cars, what should be used?

Q. Which among the following is the main characteristic of class?

Q. Deriving a class in such a way that that the base class members are not available for further inheritance is known as ___________________

Q. Which feature is not related to the derived classes among the following?

Q. The members of a derived class can never be derived.

Q. How many classes can be derived from a derived class?

Q. If base class is an abstract class then derived class ______________ the undefined functions.

Q. If class A is derived from another derived class B which is derived from class C, which class will have maximum level of abstraction?

Q. Derived class is also known as ______________ class.

Q. If a class is being derived using more than two base classes, which inheritance will be used?

Q. How many derived class can a single base class have?

Q. How many types of inheritance are supported in C++ for deriving a class?

Q. Which members can never be accessed in derived class from the base class?

Q. If there is a derived class in a program, how many classes must be in that program?

Q. Which among the following is inherited by a derived class from base class?

Q. Which among the following is best definition of a derived class?

Q. If a base class is added with few new members, its subclass must also be modified.