Header Ads

  • Breaking Now

    Objects and Classes

    The topics like Overloading,Overriding and related to object orientation have already been discussed in quite a detail in previous post under the title Object Oriented Analysis and Design Basics.My focus in this post will be on questions and code snippets related to objects and classes formation.

    What is the difference between an abstract class and an interface?

    What is the use of interface?

    What is serializable interface?

    Does a class inherit constructors from its superclass?

    What's the difference between constructors and other methods?

    If the method to be overridden has access type 'protected', can subclass have the access type as 'private'?

    If you use super() or this() in a constructor where should it appear in the constructor?

    What modifiers may be used with an inner class that is a member of an outer class?

    Can an inner class be defined inside a method?

    What is an anonymous class?

    Post Top Ad

    Post Bottom Ad