Anda di halaman 1dari 9

Advantages and Disadvantages of ABAP Object Oriented programing to Java programming ?

Advantage: ABAP OOP: You can customize the Objects Already more Objects are predefined JAVA: Easy to use

Disadvantage: ABAP: Very Complicated Java: Fully Program you should write code to create every objects, class everything
Re: Advantages and Disadvantages of ABAP Object Oriented programing to Java programming ?

ABAP Objects is the Object Oriented Aspect of the normal ABAP Reporting. It is an upgrade of the ABAP Programing Language in which the Object Oriented feature is implemented to make the ABAP Programs more robust and secure. Java on the other hand was OO Language and it has it's own feature. It is used widely in Client side programing and has a lot of UI Tools to design beautiful User Interfaces. Except for the Multiple Inheritance feature all the OO Concepts are implemented in ABAP. So any one well versed in ABAP will find the transition easy and smooth.
1) 2) 3) What is a class?how do u create What is an object? how do u create What do u mean by attributes and methods?Any real time ex?

4)

What is the diff b/w instance and static comp?how do u access them?

Explain? 5) 6) 7) 8) 9) 10) 11) 12) 13) 14) 15) 16) 17) 18) 19) 20) 21) 22) 23) 24) What is diff b/w private,public,protected? In how many ways we can create a class? How does u create a method? Can we define user defined types in classes? What is a table type and what is its use?? What is an event? What is an event handler method?explain syntax? What is set handler? please explain syntax? How does u raise an event? Explain the concept of events?any real time ex? What is a constructor and types? Why do we use construcors? Ay real time ex? What is the diff b/w instance and static construcor? Can we define importing and exp parameters for constructors? Which constructor I s executed first? What is an Inteface?any real time ex? What is polymorphism? How do we use interfaces in classes? What are aliases? What is inheritance?explain syntax?

25) 26) 27) 28) 29) 30) 31) 32) 33) 34) 35) 36) 37) 38) 39) 40) 41) 42) 43) 44) 45)

What is super? What is redifination? Do we have multiple inheritance and mulit level inheritance? What is an abstract class? Can we create an object to abstract class? If no,then how? What is FINAL? Can we access private variables of super class? If yes how?? Did you work on OOPS ALV? If yes explain? What are the advantages of OO ALVS? What are the classes in OO ALVS? What are the methods? What is custom container? What is a fieldcatelog? Did u work on interactive ALV? I f yes explain the procedure? Also explain the procedure of interactive ALV using FMS? Can we display 2 grids on a single screen, If yes how? How did u display logo/top of page in OOALV and normal ALV? Explain about Object oriented programming? Object oriented Concepts? What is a class? What is an object?

46) 47) 48) 49) 50)

How many types of classes are there in OOAbap? What is the difference between function group and classes? What are the differences local & global classes? What are the Components of a class? How to define a class locally?

1) What is meant by Object Oriented Programming? OOP is a method of programming in which programs are organised as cooperative collections of objects. Each object is an instance of a class and each class belong to a hierarchy. 2) What is a Class? Class is a template for a set of objects that share a common structure and a common behaviour. 3) What is an Object? Object is an instance of a class. It has state,behaviour and identity. It is also called as an instance of a class. 4) What is an Instance? An instance has state, behaviour and identity. The structure and behaviour of similar classes are defined in their common class. An instance is also called as an object. 5) What are the core OOPs concepts? Abstraction, Encapsulation,Inheritance and Polymorphism are the core OOPs concepts. 6) What is meant by abstraction? Abstraction defines the essential characteristics of an object that distinguish it from all other kinds of objects. Abstraction provides crisply-defined conceptual boundaries relative to the perspective of the viewer. Its the process of focussing on the essential characteristics of an object. Abstraction is one of the fundamental elements of the object model. 7) What is meant by Encapsulation? Encapsulation is the process of compartmentalising the elements of an abtraction that defines the structure and behaviour. Encapsulation helps to separate the contractual interface of an abstraction and implementation.

8) What is meant by Inheritance? Inheritance is a relationship among classes, wherein one class shares the structure or behaviour defined in another class. This is called Single Inheritance. If a class shares the structure or behaviour from multiple classes, then it is called Multiple Inheritance. Inheritance defines is-a hierarchy among classes in which one subclass inherits from one or more generalised superclasses. 9) What is meant by Polymorphism? Polymorphism literally means taking more than one form. Polymorphism is a characteristic of being able to assign a different behavior or value in a subclass, to something that was declared in a parent class. 10) What is an Abstract Class? Abstract class is a class that has no instances. An abstract class is written with the expectation that its concrete subclasses will add to its structure and behaviour, typically by implementing its abstract operations. 11) What is an Interface? Interface is an outside view of a class or object which emphaizes its abstraction while hiding its structure and secrets of its behaviour. 12) What is a base class? Base class is the most generalised class in a class structure. Most applications have such root classes. In Java, Object is the base class for all classes. 13) What is a subclass? Subclass is a class that inherits from one or more classes 14) What is a superclass? superclass is a class from which another class inherits. 15) What is a constructor? Constructor is an operation that creates an object and/or initialises its state. 16) What is a destructor? Destructor is an operation that frees the state of an object and/or destroys the object itself. In Java, there is no concept of destructors. Its taken care by the JVM. 17) What is meant by Binding? Binding denotes association of a name with a class. 18) What is meant by static binding? Static binding is a binding in which the class association is made during compile time. This is also called as Early binding.

19) What is meant by Dynamic binding? Dynamic binding is a binding in which the class association is not made until the object is created at execution time. It is also called as Late binding. 20) Define Modularity? Modularity is the property of a system that has been decomposed into a set of cohesive and loosely coupled modules. 21) What is meant by Persistence? Persistence is the property of an object by which its existence transcends space and time. 22) What is colloboration? Colloboration is a process whereby several objects cooperate to provide some higher level behaviour. 23) In Java, How to make an object completely encapsulated? All the instance variables should be declared as private and public getter and setter methods should be provided for accessing the instance variables. 24) How is polymorphism acheived in java? Inheritance, Overloading and Overriding are used to acheive Polymorphism in java. Does a class inherit the constructors of its superclass?
A class does not inherit constructors from any of its super classes.

If a class is declared without any access modifiers, where may the class be accessed?
A class that is declared without any access modifiers is said to have package access. This means that the class can only be accessed by other classes and interfaces that are defined within the same package.

What is Python and what is scope of Python?


Python : Python is an interpreted, interactive, object-oriented programming language. It is often compared to Tcl, P e r l, Scheme or Java. Python combines remarkable power with very clear syntax. It has modules, classes, exceptions, very high level dynamic data types, and dynamic typing. There are interfaces to many system calls and libraries, as well as to various windowing systems (X11, Motif, Tk, Mac, MFC, wxWidgets). New built-

in modules are easily written in C or C++. Python is also usable as an extension language for applications that need a programmable interface. The Python implementation is portable: it runs on many brands of UNIX, on Windows, OS/2, Mac, Amiga, and many other platforms. The Python implementation is copyrighted but freely usable and distributable, even for commercial use. Scope of Python : A scope is a textual region of a Python program where a name space is directly accessible. Directly accessible here means that an unqualified reference to a name attempts to find the name in the name space. Although scopes are determined statically, they are used dynamically. At any time during execution, exactly three nested scopes are in use (i.e., exactly three name spaces are directly accessible): the innermost scope, which is searched first, contains the local names, the middle scope, searched next, contains the current modules global names, and the outermost scope (searched last) is the name space containing built-in names. Usually, the local scope references the local names of the (textually) current function. Outside of functions, the local scope references the same name space as the global scope: the modules name space. Class definitions place yet another name space in the local scope. It is important to realize that scopes are determined textually: the global scope of a function defined in a module is that modules name space, no matter from where or by what alias the function is called. On the other hand, the actual search for names is done dynamically, at run time however, the language definition is evolving towards static name resolution, at compile time, so dont rely on dynamic name resolution! (In fact, local variables are already determined statically.) A special quirk of Python is that assignments always go into the innermost scope. Assignments do not copy data they just bind names to objects. The same is true for deletions: the statement del x removes the binding of x from the name space referenced by the local scope. In fact, all operations that introduce new names use the local scope: in particular, import statements and function definitions bind the module or function name in the local scope. (The global statement can be used to indicate that particular variables live in the global scope.)

What is the difference between shadow and override?


Overriding is used to redefines only the methods, but shadowing redefines the entire element.

What is multithreading?
Multithreading is the mechanism in which more than one thread run independent of each other within the process.

What are inner class and anonymous class?


A super class is a class that is inherited whereas sub class is a class that does the inheriting.

What is difference between overloading and overriding?


) In overloading, there is a relationship between methods available in the same class whereas in overriding, there is relationship between a superclass method and subclass method. b) Overloading does not block inheritance from the superclass whereas overriding blocks inheritance from the superclass. c) In overloading, separate methods share the same name whereas in overriding, subclass method replaces the superclass. d) Overloading must have different method signatures whereas overriding must have same signature.

How many ways can an argument be passed to a subroutine?


An argument can be passed in two ways. They are Pass by Value and Passing by Reference. Passing by value: This method copies the value of an argument into the formal parameter of the subroutine. Passing by reference: In this method, a reference to an argument (not the value of the argument) is passed to the parameter.

What is the difference between procedural and object-oriented programs?


1. In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOP program, unit of program is object, which is nothing but combination of data and code. 2. In procedural program, data is exposed to the whole program whereas in OOPs program, it is accessible with in the object and which in turn assures the security of the code.

What are the advantages of OOPL?


Object oriented programming languages directly represent the real life objects. The features of OOPL as inhreitance, polymorphism, encapsulation makes it powerful.

Can a method be overloaded based on different return type but same argument type ?

No, because the methods can be called without using their return type in which case there is ambiquity for the compiler.

What is Downcasting ?
Downcasting is the casting from a general to a more specific type, i.e. casting down the hierarchy.

Who were the three famous amigos and what was their contribution to the object community?
The Three amigos namely, James Rumbaugh (OMT): A veteran in analysis who came up with an idea about the objects and their Relationships (in particular Associations). Grady Booch: A veteran in design who came up with an idea about partitioning of systems into subsystems. Ivar Jacobson (Objectory): The father of USECASES, who described about the user and system interaction.

What is meant by "method-wars"?


Before 1994 there were different methodologies like Rumbaugh, Booch, Jacobson, Meyer etc who followed their own notations to model the systems. The developers were in a dilemma to choose the method which best accomplishes their needs. This particular span was called as method-wars

http://tech.groups.yahoo.com/group/koolkampusmail/message/13518

Anda mungkin juga menyukai