0% found this document useful (0 votes)
6 views

OOP (2)

The document contains a series of multiple-choice questions (MCQs) related to Object-Oriented Programming (OOP), covering concepts such as inheritance, encapsulation, polymorphism, and constructors in C++. Each question provides several options, testing knowledge on OOP principles and their application in programming languages like C++ and Java. The document serves as a resource for learners to assess their understanding of OOP concepts.

Uploaded by

Abdulrahman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

OOP (2)

The document contains a series of multiple-choice questions (MCQs) related to Object-Oriented Programming (OOP), covering concepts such as inheritance, encapsulation, polymorphism, and constructors in C++. Each question provides several options, testing knowledge on OOP principles and their application in programming languages like C++ and Java. The document serves as a resource for learners to assess their understanding of OOP concepts.

Uploaded by

Abdulrahman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 35

# OOPs MCQ 1 (https://www.javatpoint.

com/oops-mcq)
1. Which of the following language was developed as the first purely object programming language?

1. SmallTalk
2. C++
3. Kotlin
4. Java
2. Who developed object-oriented programming?

1. Adele Goldberg
2. Dennis Ritchie
3. Alan Kay
4. Andrea Ferro
3. Which of the following is not an OOPS concept?

1. Encapsulation
2. Polymorphism
3. Exception
4. Abstraction
4. Which feature of OOPS described the reusability of code?
1. Abstraction
2. Encapsulation
3. Polymorphism
4. Inheritance
5. Which of the following language supports polymorphism but not the classes?

1. C++ programming language


2. Java programming language
3. Ada programming language
4. C# programming language
6. Which among the following feature is not in the general definition of OOPS?

1. Modularity
2. Efficient Code
3. Code reusability
4. Duplicate or Redundant Data
7. Which feature of OOPS derives the class from another class?

1. Inheritance
2. Data hiding
3. Encapsulation
4. Polymorphism
8. Define the programming language, which does not support all four types of inheritance?

1. Smalltalk
2. Kotlin
3. Java
4. C++
9. A single program of OOPS contains _______ classes?

1. Only 1
2. Only 999
3. Only 100
4. Any number
10.Which operator from the following can be used to illustrate the feature of polymorphism?
1. Overloading <<
2. Overloading &&
3. Overloading | |
4. Overloading +=
11.Which two features of object-oriented programming are the same?

1. Abstraction and Polymorphism features are the same


2. Inheritance and Encapsulation features are the same
3. Encapsulation and Polymorphism features are the same
4. Encapsulation and Abstraction
12.Which header file is required by the C++ programming language to use the OOPS concept?
1. stdio.h
2. iostream.h
3. stdlib.h
4. We can easily use the OOPS concepts in c++ programs without using any header file.
13.Which of the following definition is incorrect for polymorphism?

1. Polymorphism helps in redefining the same functionality


2. Polymorphism concept is the feature of object-oriented programming (OOP)
3. It always increases the overhead of function definition
4. Ease in the readability of the program
14.Which among the following cannot be used for the concept of polymorphism?

1. Static member function


2. Constructor Overloading
3. Member function overloading
4. Global member function
15.Which function best describe the concept of polymorphism in programming languages?

1. Class member function


2. Virtual function
3. Inline function
4. Undefined function
16.Which member function is assumed to call first when there is a case of using function overloading
or abstract class?

1. Global function
2. Local function
3. Function with lowest priority
4. Function with the highest priority
17.Is it true to use polymorphism in the C programming language?

1. True
2. False
18.Which of the following language uses the classes but not the polymorphism concept?

1. Procedure Oriented language


2. Object-based language
3. Class-based language
4. If classes are used, then the polymorphism concept will always be used in the programming
languages.
19.Which of the following OOP concept is not true for the C++ programming language?

1. A class must have member functions


2. C++ Program can be easily written without the use of classes
3. At least one instance should be declared within the C++ program
4. C++ Program must contain at least one class
20.What is the extra feature in classes which was not in the structures?

1. Member functions
2. Data members
3. Public access specifier
4. Static Data allowed
21.How many types of polymorphism in the C++ programming language?

1. Three types of polymorphism


2. Two types of polymorphism
3. Five types of polymorphism
4. Four types of polymorphism
22.Which of the following feature is also known as run-time binding or late binding?
1. Dynamic typing
2. Dynamic loading
3. Dynamic binding
4. Data hiding
23.Which among the following is not a member of the class?

1. Virtual function
2. const function
3. Static function
4. Friend function
24.Which of the following class is known as the generic class?
1. Final class
2. Template class
3. Abstract class
4. Efficient code
25.Which operator overloads using the friend function?

1. *
2. ( )
3. ->
4. =
26.Which of the following OOP concept binds the code and data together and keeps them secure
from the outside world?

1. Polymorphism
2. Inheritance
3. Abstraction
4. Encapsulation
27.Which member of the superclass is never accessible to the subclass?
1. Public member
2. Protected member
3. Private member
4. All of the mentioned
28.What is the size of a class?

1. Sum of the size of all inherited variables along with the variables of the same class
2. The size of the class is the largest size of the variable of the same class
3. Classes in the programming languages do not have any size
4. Sum of the size of all the variables within a class.
29.Which class cannot create its instance?

1. Parent class
2. Nested class
3. Anonymous class
4. Abstract class
30.Encapsulation adds the function in a user-defined structure.

1. True
2. False
31.Which of the following variable violates the definition of encapsulation?

1. Array variables
2. Local variables
3. Global variables
4. Public variables
32.How can the concept of encapsulation be achieved in the program?

1. By using the Access specifiers


2. By using the concept of Abstraction
3. By using only private members
4. By using the concept of Inheritance
33.The concept of encapsulation helps in writing which type of classes in the Java programming
language?
1. Abstract classes
2. Wrapper classes
3. Mutable classes
4. Immutable classes
34.Encapsulation is_____?

1. technique of combining more than one member functions into a single unit.
2. mechanism of combining more than one data member into a single unit.
3. mechanism of combining more than one data members and member functions that
implement on those data members into a single unit
4. technique of combining more than one data members and member functions into a single
unit, which can manipulate any data.
35.Which of the following statement of a program is not right?
1. class teacher{ }; teacher s[5];
2. class teacher{ }s;
3. class teacher{ }; teacher s;
4. class teacher{ }s[];
36.Which of the following syntax is incorrect for the class definition?

1. student class{ };
2. class student{ student(int a){} };
3. class teacher{ public: teacher(int a){ } };
4. None of the mentioned
37.The object cannot be________?

1. passed by copy
2. passed as function
3. passed by value
4. passed by reference
38.Which among the following feature does not come under the concept of OOPS?

1. Data binding
2. Data hiding
3. Platform independent
4. Message passing
39.Which of the following feature may be breaked if the user does not use the classes in the code?
1. Object must be used violated
2. Only the encapsulation concept is violated
3. Inheritance cannot be implemented
4. Basically, all the features of OOPS get violated
40.Which of the following feature interacts one object with another object?

1. Message reading
2. Message passing
3. Data transfer
4. Data binding
41.Which definition best defines the concept of abstraction?
1. Hides the important data
2. Hides the implementation and showing only the features
3. Hiding the implementation
4. Showing the important data
42.The combination of abstraction of the data and code is viewed in________.

1. Inheritance
2. Object
3. Class
4. Interfaces
43.The principle of abstraction___________

1. is used to achieve OOPS.


2. is used to avoid duplication
3. Use abstraction at its minimum
4. is used to remove longer codes
44.Which among the following concept is correct if a user using the concept of encapsulation in a
code?
1. The modification of the code can be additional overhead
2. Member functions can be used for modifying the data type of data members
3. The data type of data member cannot be modified.
4. The data type of the data member can be easily modified without modifying any other code
45.Using the concept of encapsulation security of the data is ___________

1. Ensured to some extent


2. Purely ensured
3. Not ensured
4. Very low

46.Which of the following option best illustrates a friend class?

1. This class can access and manipulate all the private members of that class which connects
to a friend.
2. Friend class can only access and manipulate the protected data members of that class that
connects to a friend.
3. Friend class can't access any data member of another class but can use its methods
4. Friend class don't have any implementation
47.Consider the following Java program and select the right option from the given options.

class marksofstudent

int subjectmarks;

public : int* fun()

return &subjectmarks;

};

main()

marksofstudent s;

int *ptr = c.fun() ;

return 0;

1. The above program violates the feature of encapsulation


2. The above program may result in undesirable conditions
3. The above program will generate an error
4. The above program is good to go
48.The name of the default access specifier for the member functions or data members in the C++
programming language is_________.

1. Private access specifier


2. Public access specifier
3. Protected access specifier
4. Depends on compiler
49.Which of the following definition best describes the concept of polymorphism?

1. It is the ability to process the many messages and data in one way
2. It is the ability to process the undefined messages or data in at least one way
3. It is the ability to process the message or data in more than one form
4. It is the ability to process the message or data in only one form
50.Which class/ or set of classes can describe the concept of polymorphism in the following code?

abstract class student_details

public : int marksofstudent;

calculate_grade();

class topper:public student_details

public : calculate_grade()

return 15;

};

class average:public student_details

public : calculate_grade()

return 30;

};

class failed{ int marksofstudent; };

1. Only the student_details class can show the concept of polymorphism


2. The class which is 'failed' should also inherit class student for this code to work for
polymorphism
3. The student_details, topper and average classes together can show the concept of
polymorphism
4. Only the student_details and topper class together can show the concept of polymorphism
# OOPs MCQ 2 (https://www.interviewbit.com/oops-mcq/)
1. What is the implicit return type of constructor?
1. No return type
2. A class object in which it is defined
3. Void
4. None
2. When is the object created with a new keyword?
1. At run time
2. At compile time
3. Depends on the code
4. None
3. Identify the incorrect constructor type.
1. Friend constructor
2. Default constructor
3. Parameterized constructor
4. Copy constructor
4. Identify the scope resolution operator.
1. :
2. ::
3. ?:
4. None
5. Choose the option below which is not a member of the class.
1. Friend Function
2. Static Function
3. Virtual Function
4. Const Function
6. Total types of constructors in C++ are?
1. 1
2. 2
3. 3
4. 4
7. What is the number of parameters that a default constructor requires?
1. 0
2. 1
3. 2
4. 3
8. Data members and member functions of a class are private. default. True or False?
1. True
2. False
3. Depends on code
4. None
9. Under which pillar of OOPS do base class and derived class relationships come?
1. Polymorphism
2. Inheritance
3. Encapsulation
4. Abstraction
10. Which of the following functions can be inherited from the base class?
1. Constructor
2. Destructor
3. Static
4. None
11. Which of the following is not a type of inheritance?
1. Multiple
2. Multilevel
3. Distributed
4. Hierarchical
12. What is an object in c++?
1. It is a function of class
2. It is an instance of the class
3. It is the data type of class
4. It is part of the syntax of class.
13. Why is reusability a desirable feature?
1. Reduces compilation time
2. Decreases testing time
3. Lowers maintenance cost
4. None
14. Identify the operators which cannot be overloaded.
1. ?:
2. .(dot operator)
3. >>
4. Both A and B
15. Another name of overloading is?
1. Pseudo polymorphism
2. Transient polymorphism
3. Virtual polymorphism
4. Ad-hoc polymorphism
16. By default, fields in a structure of a C program is?
1. public
2. Private
3. protected
4. None
17. On what basis is it determined, when a variable comes into existence in memory?
1. Data type
2. Storage class
3. Scope
4. All of the above
18. Identify the feature using which, one object can interact with another object.
1. Message passing
2. Message reading
3. Data binding
4. Data transfer
19. Total access specifiers in OOPS for C++ are?
1. 1
2. 2
3. 3
4. 4
20. Choose the option below which can show polymorphism.
1. Overloading ||
2. Overloading <<
3. Overloading &&
4. Overloading +=
21. Select the following which shows the correct constructor.
1. ()class_name
2. -class_name
3. class_name()
4. ~class_name()
22. To access data members of a class, which of the following is used?
1. Dot operator
2. Arrow operator
3. Dot or arrow operator, as required
4. Dot, arrow, or direct call
23. Identify the feature, which is used to reduce the use of nested classes.
1. Binding
2. Inheritance
3. Encapsulation
4. Abstraction
24. Choose the option below which is used to free the memory allocated for an object
in C++.
1. Free()
2. unallocate()
3. delete
4. collect
25. Identify the option below which is not a property of the object.
1. Names
2. Attributes
3. Identity
4. Properties
26. What type of inheritance does single-level inheritance support?
1. Compile-time
2. Runtime inheritance
3. Multiple inheritances
4. Language independent
27. In which of the following is memory allocated for the objects?
1. RAM
2. ROM
3. Cache
4. HDD
28. How do encapsulation and abstraction differ?
1. Hiding and binding
2. Binding and hiding
3. Hiding and hiding
4. None
29. Choose the option below which is shown by function overriding
1. Abstraction
2. Encapsulation
3. Polymorphism
4. Inheritance
30. Choose the option below for which instance of the class cannot be created.
1. Anonymous class
2. Parent class
3. Nested class
4. Abstract class
31. Identify the feature which can be implemented using encapsulation.
1. Abstraction
2. Encapsulation
3. Polymorphism
4. Inheritance
32. Why is a virtual function mainly used to achieve?
1. Function code polymorphism
2. Interpreter polymorphism
3. Compile-time polymorphism
4. Runtime polymorphism
33. Virtual functions should be defined in?
1. Derived class
2. Base class
3. Both base and derived class
4. None
34. Virtual function should be ________.
1. public
2. Private
3. protected
4. default
35. Choose whether True or False: The constructor function can be constant.
1. True
2. False
3. Depends on implementation
4. None
36. Dynamic memory allocation can be done using?
1. calloc()
2. malloc()
3. Both (a) and (b)
4. create()
37. Total types of polymorphism in C++ are?
1. 1
2. 2
3. 3
4. 4
38. Another name of the generic class is?
1. Template class
2. Final class
3. Abstract class
4. Efficient code
39. Choose the option below which overloads using the friend function.
1. ()
2. ->
3. *
4. =
40. Choose whether True or False: Object cannot be passed as a function.
1. True
2. False
3. Depends on implementation
4. None
41. Identify the pure object-oriented programming language among the following.
1. C++
2. SmallTalk
3. Java
4. Python
42. Identify the abstract data type among the following.
1. Double
2. Int
3. Class
4. String
43. What are the total catch blocks that can be used using a single Try block?
1. 1
2. 2
3. According to needs
4. Maximum 256
44. Choose the incorrect option below which is not a type of constructor.
1. Copy constructor
2. Friend constructor
3. Parameterized constructor
4. Default constructor
45. Total instances of an abstract class that can be created?
1. 0
2. 1
3. 4
4. 8
46. Identify the option below which cannot be used with the term “virtual”.
1. constructor
2. destructor
3. class
4. Member function
47. Which type of inheritance is implemented in the following code below?
1. Single inheritance
2. Multilevel inheritance
3. Hybrid inheritance
4. Multiple inheritances
48. Choose the option below which is used to implement late binding.
1. Friend function
2. Static function
3. Virtual function
4. Const function
49. What is cout?
1. Operator
2. Object
3. Function
4. Macro
50. Choose the option below which describes the overloading of functions.
1. Ad-hoc polymorphism
2. Virtual polymorphism
3. Pseudo polymorphism
4. Transient polymorphism
51. Who developed object-oriented programming?
1. Dennis Ritchie
2. Charles Babbage
3. Alan Kay
4. Andrea Ferro
52. Which of the following is not an oops concept?
1. Inheritance
2. Compilation
3. Polymorphism
4. Encapsulation
# OOPs MCQ 3 (https://www.sanfoundry.com/1000-object-oriented-programming-oops-questions-answers/)

1. Who invented OOP?

a) Andrea Ferro

b) Adele Goldberg

c) Alan Kay

d) Dennis Ritchie

2. Which is not a feature of OOP in general definitions?

a) Efficient Code

b) Code reusability

c) Modularity

d) Duplicate/Redundant data

3. Which was the first purely object oriented programming language developed?

a) Kotlin

b) SmallTalk

c) Java

d) C++

4. When OOP concept did first came into picture?

a) 1980’s

b) 1995

c) 1970’s

d) 1993
5. Which feature of OOP indicates code reusability?

a) Abstraction

b) Polymorphism

c) Encapsulation

d)Inheritance

6. Which header file is required in C++ to use OOP?

a) OOP can be used without using any header file

b) stdlib.h

c) iostream.h

d) stdio.h

7. Why Java is Partially OOP language?

a) It allows code to be written outside classes

b) It supports usual declaration of primitive data types

c) It does not support pointers

d) It doesn’t support all types of inheritance

8. Which among the following doesn’t come under OOP concept?

a) Data hiding

b) Message passing

c) Platform independent

d) Data binding
9. Which is the correct syntax of inheritance?

a) class base_classname :access derived_classname{ /*define class body*/ };

b) class derived_classname : access base_classname{ /*define class body*/ };

c) class derived_classname : base_classname{ /*define class body*/ };

d) class base_classname : derived_classname{ /*define class body*/ };

10.Which feature of OOP is indicated by the following code?

class student{ int marks; };

class topper:public student{ int age; topper(int age){ this.age=age; } };

a) Encapsulation and Inheritance

b) Inheritance and polymorphism

c) Polymorphism

d) Inheritance

11.The feature by which one object can interact with another object is _____________

a) Message reading

b) Message Passing

c) Data transfer

d) Data Binding

12.Which among the following, for a pure OOP language, is true?

a) The language should follow at least 1 feature of OOP

b) The language must follow only 3 features of OOP

c) The language must follow all the rules of OOP

d) The language should follow 3 or more features of OOP


13.How many types of access specifiers are provided in OOP (C++)?

a) 4

b) 3

c) 2

d) 1

14.In multilevel inheritance, which is the most significant feature of OOP used?

a) Code efficiency

b) Code readability

c) Flexibility

d) Code reusability

15.What is encapsulation in OOP?

a) It is a way of combining various data members and member functions that operate on those

data members into a single unit

b) It is a way of combining various data members and member functions into a single unit

which can operate on any data

c) It is a way of combining various data members into a single unit

d) It is a way of combining various member functions into a single unit

16.Which of the following is not true about polymorphism?

a) Helps in redefining the same functionality

b) Increases overhead of function definition always

c) It is feature of OOP

d) Ease in readability of program


17.Which constructor will be called from the object created in the below C++ code?

class A

int i;

A()

i=0; cout&lt;&lt;i;

A(int x=0)

i=x; cout&lt;&lt;I;

};

A obj1;

a) Parameterized constructor

b) Default constructor

c) Run time error

d) Compile time error

18.What is an abstraction in object-oriented programming?

a) Hiding the implementation and showing only the features

b) Hiding the important data

c) Hiding the implementation

d) Showing the important data


19.Which among the following can show polymorphism?

a) Overloading &&

b) Overloading <<

c) Overloading ||

d) Overloading +=

20.In which access should a constructor be defined, so that object of the class can be created in any

function?

a) Any access specifier will work

b) Private

c) Public

d) Protected

21.Which among the following is correct for the class defined below?

class student
{
int marks;
public: student(){}
student(int x)
{
marks=x;
}
};
main()
{
student s1(100);
student s2();
student s3=100;
return 0;
}
a) Program will give compile time error

b) Object s3, syntax error

c) Only object s1 and s2 will be created

d) Program runs and all objects are created


22.The copy constructors can be used to ________

a) Copy an object so that it can be passed to another primitive type variable

b) Copy an object for type casting

c) Copy an object so that it can be passed to a function

d) Copy an object so that it can be passed to a class

23.Which constructor will be called from the object obj2 in the following C++ program?

class A
{
int i;
A()
{
i=0;
}
A(int x)
{
i=x+1;
}
A(int y, int x)
{
i=x+y;
}
};
A obj1(10);
A obj2(10,20);
A obj3;

a) A(int y, int x)

b) A(int y; int x)

c) A(int y)

d) A(int x)
24.Which among the following represents correct constructor?

a) –classname()

b) classname()

c) ()classname

d) ~classname()

25.What happens when an object is passed by reference?

a) Destructor is called at end of function

b) Destructor is called when called explicitly

c) Destructor is not called

d) Destructor is called when function is out of scope

26.Which access specifier is usually used for data members of a class?

a) Protected

b) Private

c) Public

d) Default

27.How to access data members of a class?

a) Dot, arrow or direct call

b) Dot operator

c) Arrow operator

d) Dot or arrow as required


28.Which feature of OOP reduces the use of nested classes?

a) Inheritance

b) Binding

c) Abstraction

d) Encapsulation

29.Which keyword among the following can be used to declare an array of objects in java?

a) allocate

b) arr

c) new

d) create

30.Which operator can be used to free the memory allocated for an object in C++?

a) Unallocate

b) Free()

c) Collect

d) delete

31.Which of the following is not a property of an object?

a) Properties

b) Names

c) Identity

d) Attributes
32.Which type of members can’t be accessed in derived classes of a base class?

a) All can be accessed

b) Protected

c) Private

d) Public

33.Which among the following best describes the Inheritance?

a) Using the data and functions into derived segment

b) Using already defined functions in a programming language

c) Using the code already written once

d) Copying the code already written

34.Single level inheritance supports _____________ inheritance.

a) Language independency

b) Multiple inheritance

c) Compile time

d) Runtime

35.How to overcome diamond problem?

a) Using seperate derived class

b) Using virtual keyword with same name function

c) Can’t be done

d) Using alias name


36.Which keyword is used to declare virtual functions?

a) virt

b) virtually

c) virtual

d) anonymous

37.What happens if non static members are used in static member function?

a) Executes fine

b) Compile time error

c) Executes if that member function is not used

d) Runtime error

38.What is friend member functions in C++?

a) Non-member functions which have access to all the members (including private) of a class

b) Member function which doesn’t have access to private members

c) Member function which can modify any data of a class

d) Member function which can access all the members of a class

39.Where is the memory allocated for the objects?

a) Cache

b) ROM

c) HDD

d) RAM
40.Which of the following best describes member function overriding?

a) Member functions having the same name in derived class only

b) Member functions having the same name and different signature inside main function

c) Member functions having the same name in base and derived classes

d) Member functions having the same name in base class only

41.Encapsulation and abstraction differ as ____________

a) Hiding and hiding respectively

b) Binding and Hiding respectively

c) Hiding and Binding respectively

d) Can be used any way

42.Which feature of OOP is exhibited by the function overriding?

a) Polymorphism

b) Encapsulation

c) Abstraction

d) Inheritance

43.How to access the private member function of a class?

a) Using class address

b) Using object of class

c) Using object pointer

d) Using address of member function


44.Which keyword should be used to declare static variables?

a) const

b) common

c) static

d) stat

45.Which is correct syntax for declaring pointer to object?

a) *className objectName;

b) className* objectName;

c) className objectName();

d) className objectName;
46.Which class/set of classes can illustrate polymorphism in the following C++ code?

abstract class student


{
public : int marks;
calc_grade();
}
class topper:public student
{
public : calc_grade()
{
return 10;
}
};
class average:public student
{
public : calc_grade()
{
return 20;
}
};
class failed{ int marks; };

a) Only class student and topper together can show polymorphism

b) Only class student can show polymorphism

c) Class failed should also inherit class student for this code to work for polymorphism

d) All class student, topper and average together can show polymorphism

47.If data members are private, what can we do to access them from the class object?

a) Private data members can never be accessed from outside the class

b) Create public member functions to access those data members

c) Create private member functions to access those data members

d) Create protected member functions to access those data members


48.Which among the following is not a necessary condition for constructors?

a) Its name must be same as that of class

b) It must not have any return type

c) It must contain a definition body

d) It can contains arguments

49.Object being passed to a copy constructor ___________

a) Must not be mentioned in parameter list

b) Must be passed with integer type

c) Must be passed by value

d) Must be passed by reference

50.If in multiple inheritance, class C inherits class B, and Class B inherits class A. In which

sequence are their destructors called if an object of class C was declared?

a) ~A() then ~B() then ~C()

b) ~C() then ~A() then ~B()

c) ~C() then ~B() then ~A()

d) ~B() then ~C() then ~A()

51.Instance of which type of class can’t be created?

a) Parent class

b) Abstract class

c) Anonymous class

d) Nested class
52.___________ underlines the feature of Polymorphism in a class .

a) Virtual Function

b) Inline function

c) Enclosing class

d) Nested class

53.Which feature in OOP is used to allocate additional functions to a predefined operator in any

language?

a) Function Overloading

b) Function Overriding

c) Operator Overloading

d) Operator Overriding

54.Which feature can be implemented using encapsulation?

a) Polymorphism

b) Overloading

c) Inheritance

d) Abstraction

You might also like