File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes About principal characteristics of OOP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "About principal characteristics of OOP" Watch "About principal characteristics of OOP" New topic
Author

About principal characteristics of OOP

Jack Lau
Ranch Hand

Joined: Aug 30, 2002
Posts: 166
Hello all,
The following question is from www.jchq.net
Name three principal characteristics of Object Oriented programming?
1) encapsulation, dynamic binding, polymorphism
2) polymorphism, overloading, overriding
3) encapsulation, inheritance, dynamic binding
4) encapsulation, inheritance, polymorphism
The answer is 4
I know 4 is a correct answer, but I don't understand why 3 is not correct.
Late binding, dynamic binding and polymorphism are not the same ?
Thanks in advance!
Jack
Bikhu Matre
Greenhorn

Joined: Nov 14, 2003
Posts: 7
Link
Try this.
vani vani
Greenhorn

Joined: Nov 19, 2003
Posts: 1
Static binding means that the function being called is determined as the program is compiled
Dynamic binding is the opposite of static binding. The binding decision is delayed until runtime. This allows you to add components to your program while it is still running. If the runtime environment is designed to support this (and Rhapsody should be), it opens up a lot of interesting possibilities.

The C++ language supports a limited version of dynamic binding called late binding. In C++, a function call must type-match exactly the called function (called static typing) or else type-match exactly an inherited function. Though C++ virtual functions allow you to delay the binding until runtime, the type constraints still apply. Late binding is still restricted. Dynamic binding is unconstrained.
Anupreet Arora
Ranch Hand

Joined: Jun 17, 2003
Posts: 81
I believe that polymorphism is a broader term, which groups the concepts of dynamic binding, static binding, super class variables to access sub class objects, overriding, dynamic method dispatch etc.
And Ans C is correct because its Polymorphism that is one of the pillars of OOPs and not just dynamic binding.
Comments are welcome.
Anupreet Arora
Ranch Hand

Joined: Jun 17, 2003
Posts: 81
Correction : Ans D
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About principal characteristics of OOP
 
Similar Threads
OOP Concepts
oops
Difference b/w Abstraction and Encapsulation
What are the principles of OOA/D?
4 key points about Oops