aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C# and Java Programming Fundamentals
  • How can we prevent a class from Instantiating?
Multiple choice technology programming languages

How can we prevent a class from Instantiating?

  1. Use Abstract class

  2. Use Private Constructor

  3. Both of the above

  4. Use Sealed class

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • Which of the following classes prevents it from being instantiated?
  • Which two allow the class Thing to be instantiated using new Thing()?
  • How can a class be both abstract and sealed?
  • Declaring a class ______ prevents any unwanted extensions to the class.
  • A class which cannot be derived is
  • Which class cant have explicit constructors?
  • Abstract classes cannot be instantiated.
  • In JAVA you can prevent others from extending your class by making it static using the keyword static in th...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Object-Oriented Programming (2239 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy