iOS Design Patterns
Singleton, Factory, Builder, Observer, Coordinator, Repository, Dependency Injection, SOLID
1Which pattern guarantees only one instance of a class throughout the application?
Which pattern guarantees only one instance of a class throughout the application?
Cevap
The Singleton pattern restricts instantiation to a single global instance. In iOS, it enables centralized access to shared resources like configurations or managers. However, Singletons reduce testability by creating hard-to-mock global dependencies.
2Which pattern abstracts object creation without exposing the exact instantiation logic?
Which pattern abstracts object creation without exposing the exact instantiation logic?
Cevap
The Factory pattern encapsulates object creation in a dedicated method or class. This allows modifying creation logic without affecting client code. In iOS, factory methods simplify managing complex dependencies and facilitate testing through easy substitutions.
3Which pattern constructs complex objects step-by-step while separating construction from representation?
Which pattern constructs complex objects step-by-step while separating construction from representation?
Cevap
The Builder pattern enables creating objects with many optional parameters without overloading constructors. In iOS, it improves code clarity and maintenance. Unlike Factory that returns immediately, Builder allows progressive and fluid configuration.
Which pattern defines a one-to-many dependency where observers are automatically notified of changes?
What is the main use of a Factory to create objects with conditional logic?
+21 mülakat soruları
Diğer iOS mülakat konuları
Swift Basics
Swift Language Essentials
UIKit Fundamentals
UIViewController Lifecycle
UserDefaults & Keychain
Application Lifecycle
Auto Layout & Constraints
UITableView & UICollectionView
SwiftUI Basics
SwiftUI State Management
SwiftUI Navigation
Networking & URLSession
Codable & JSON Parsing
Core Data
Protocol Oriented Programming
MVVM Architecture
Push Notifications
Unit Testing & XCTest
UI Testing
Xcode & Build System
Swift Package Manager
Memory Management & ARC
Combine Framework
Concurrency & async/await
Performance Optimization
Security & Encryption
SwiftUI Advanced
iOS Application Architecture
Bir sonraki mülakatın için iOS'de uzmanlaş
Tüm sorulara, flashcards'a, teknik testlere, code review alıştırmalarına ve mülakat simülatörlerine eriş.
Ücretsiz başla