Are most object oriented programming languages imperative or declarative languages?
Object-oriented languages are primarily imperative. The point of an object is to group variables with the functions that modify them, so we need to have variables and the capability of modifying them. • If a method is declared to be protected in class A, Where is that method visible? It is visible in class A and all of its subclasses. • What is the difference between a class variable and an instance variable? An instance variable is part of an instance of a class, and each instance gets its own copy of the variable. A class variable is associated with the class itself, and all instances of the class share that variable. • The base class B of a class A is the class that A directly extends. In a single-inheritance object-oriented language, is there a limit on the number of base classes that a class can have? In a single-inheritance language, each class can only have one base class. That means that the hierarchy diagram is a tree. • In object-oriented programming, you imagine that objects