GeeksforGeeks » Interview Questions

Honeywell Interview Question for Software Engineer/Developer (0 - 2 Years) about Object Oriented

(2 posts)
  1. piyush
    guest
    Posted 1 year ago #

    how do u ensure an object of a class can not be created?

  2. Baishali
    guest
    Posted 1 year ago #

    make the constructor of the class as private.


Reply

You must log in to post.

RSS feed for this topic