Die Suche ergab 64 Treffer

von ayushmaan_jain
9. Jul 2015 13:58
Forum: Archiv
Thema: Visitor Pattern
Antworten: 5
Zugriffe: 686

Re: Visitor Pattern

Yes, I have gone through it.
von ayushmaan_jain
9. Jul 2015 13:52
Forum: Archiv
Thema: Java collections Framework - Map
Antworten: 3
Zugriffe: 497

Re: Java collections Framework - Map

Yes, now it makes sense to me. Thanks :)
von ayushmaan_jain
9. Jul 2015 13:29
Forum: Archiv
Thema: Java collections Framework - Map
Antworten: 3
Zugriffe: 497

Re: Java collections Framework - Map

if anyone knows then please share
von ayushmaan_jain
9. Jul 2015 13:24
Forum: Archiv
Thema: Visitor Pattern
Antworten: 5
Zugriffe: 686

Re: Visitor Pattern

m.hosseinian hat geschrieben:have you studied the second part of Inheritance slide series? (which is not discussed on the lecture!)
I did not understand which part you are referring to.
von ayushmaan_jain
9. Jul 2015 13:01
Forum: Archiv
Thema: Reflections on the Visitor Structure
Antworten: 5
Zugriffe: 492

Re: Reflections on the Visitor Structure

public abstract class Pizza { public abstract void print(); public void accept(Visitor v) { v.accept(this); } } class CheesePizza extends Pizza{ @Override public void print() { // TODO Auto-generated method stub System.out.println("Cheesse Pizza"); } } class VegPizza extends Pizza{ public void doSo...
von ayushmaan_jain
9. Jul 2015 12:53
Forum: Archiv
Thema: Proxy Pattern & LSP
Antworten: 2
Zugriffe: 455

Proxy Pattern & LSP

Anybody has idea how does proxy pattern often violates the LSP ?
von ayushmaan_jain
9. Jul 2015 10:01
Forum: Archiv
Thema: Visitor Pattern
Antworten: 5
Zugriffe: 686

Visitor Pattern

On Slide #3 of visitor pattern, three problems are mentioned which are : • Weak support for combining variations at the level of the composite with those at the level of individual elements. • No support for expressing covariant variations. • Instantiation problems. Please help me to understand thes...
von ayushmaan_jain
8. Jul 2015 16:22
Forum: Archiv
Thema: Late Binding - Decorator Pattern
Antworten: 2
Zugriffe: 367

Re: Late Binding - Decorator Pattern

Just came to know it could be solved with Scala mixings Possible Solution : trait Account{ var x :String = null; def getType():String = x; def printHistory(); } class CheckAccount(typeAc:String) extends Account{ x = typeAc; override def printHistory() = { println("Inside check "+getType()); } } trai...
von ayushmaan_jain
8. Jul 2015 15:45
Forum: Archiv
Thema: Closure & Lambda
Antworten: 2
Zugriffe: 467

Re: Closure & Lambda

Thanks, that helped.
von ayushmaan_jain
8. Jul 2015 15:44
Forum: Archiv
Thema: Late Binding - Decorator Pattern
Antworten: 2
Zugriffe: 367

Late Binding - Decorator Pattern

Hello,

Does someone have any idea how can we fix the No-Late Binding problem in Account example of Decorator pattern ?

Regards,
SJ
von ayushmaan_jain
8. Jul 2015 10:43
Forum: Archiv
Thema: Closure & Lambda
Antworten: 2
Zugriffe: 467

Closure & Lambda

Hi all -

I have basic understanding of both but I am don't able to deduce difference(s) between both.
Could anyone explain the difference(s) between both ?

And if possible, please help with giving suitable examples for both Java & Scala.


Thanks !
von ayushmaan_jain
7. Jul 2015 14:47
Forum: Archiv
Thema: Visitor Pattern
Antworten: 8
Zugriffe: 620

Re: Visitor Pattern

As per GoF - Related behavior isn't spread over the classes defining the object structure; it's localized in a visitor. Unrelated sets of behavior are partitioned in their own visitor subclasses. I have doubt about second statement i.e Unrelated sets of behavior... Does it mean that there will be a ...
von ayushmaan_jain
7. Jul 2015 12:30
Forum: Archiv
Thema: Previous Year Exam
Antworten: 0
Zugriffe: 401

Previous Year Exam

Is it possible to get final exam of previous year ?
It will help to understand the exam structure and prepare accordingly.
von ayushmaan_jain
4. Jul 2015 14:36
Forum: Archiv
Thema: Visitor Pattern
Antworten: 8
Zugriffe: 620

Re: Visitor Pattern

Thanks for such a pretty explanation :)
von ayushmaan_jain
4. Jul 2015 12:39
Forum: Archiv
Thema: Strategy Pattern - Communication overhead
Antworten: 2
Zugriffe: 318

Re: Strategy Pattern - Communication overhead

Thanks for such a good explanation and clearing my doubt :D :D :D

Zur erweiterten Suche